Package br.com.objectos.rio

Examples of br.com.objectos.rio.GentooInstall


  @Override
  protected void executeCommand(EtoOsInstallOptions options) {
    OsDirs dirs = options.dirs(xtoDirs);

    GentooInstall install = gentoo.install(this)
        .tempDirAt(dirs.osVar())
        .mountDirAt(dirs.installMountDir())
        .resourcesAt(options.resourcesDir())

        .serverAt(options.fileServer())
        .stage3(options.getStage3Name())

        .toDevice(options.device)
        .model(options.hd)
        .sfdisk(options.sfdiskName())

        .fs()
        /**/.dev(1).ext2()
        /**/.dev(2).swap()
        /**/.dev(3).ext4()
        /**/.dev(4).ext4()
        .done()

        .mount()
        /**/.dev(3).at()
        /**/.dev(1).at("boot")
        /**/.dev(4).at("srv")
        .done()

        .build();

    if (options.download && !options.skipDownload) {
      install.dowload();
    }

    if (options.partition) {
      install.partition();
    }

    if (options.unpack) {
      install.unpack();
    }

    if (options.grub) {
      install.grub();
    }
  }
View Full Code Here


  @Override
  protected void executeCommand(SaoOsInstallOptions options) {
    OsDirs dirs = options.dirs(saoDirs);

    GentooInstall install = gentoo.install(this)
        .tempDirAt(dirs.osVar())
        .mountDirAt(dirs.installMountDir())
        .resourcesAt(options.resourcesDir())

        .serverAt(options.fileServer())
        .stage3(options.getStage3Name())

        .toDevice(options.device)
        .model(options.hd)
        .sfdisk(options.sfdiskName())

        .fs()
        /**/.dev(1).ext2()
        /**/.dev(2).swap()
        /**/.dev(3).ext4()
        /**/.dev(4).ext4()
        .done()

        .mount()
        /**/.dev(3).at()
        /**/.dev(1).at("boot")
        /**/.dev(4).at("srv")
        .done()

        .build();

    if (options.download && !options.skipDownload) {
      install.dowload();
    }

    if (options.partition) {
      install.partition();
    }

    if (options.unpack) {
      install.unpack();
    }

    if (options.grub) {
      install.grub();
    }
  }
View Full Code Here

TOP

Related Classes of br.com.objectos.rio.GentooInstall

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.