Package br.com.objectos.rio

Examples of br.com.objectos.rio.GentooInstaller


    return new OsPrepareOptions();
  }

  @Override
  protected void executeCommand(OsPrepareOptions options) {
    GentooInstaller installer = gentoo.installer(this)
        .tempDirAt(dirs.osVar())
        .mountDirAt(dirs.mountDir())
        .stageServer(options.fileServer())
        .distfilesServer(options.distfilesServer())
        .resourcesAt("/os/prepare")
        .resourcesListAt("/os/list/files.txt")
        .resourcesMapAt("/os/list/map.txt")
        .resourcesContext(options)
        .setProfileTo(4)
        .kernelVersion("3.10.17")

        .emerge("app-emulation/virtualbox-modules")

        .symlink("/etc/init.d/net.lo").to("/etc/init.d/net.eth0")

        .chmod()
        /**/.file("/etc/local.d/00-eto-ssh-key.start").to(755)
        .done()

        .useradd().home("/eto").gid("users").groups("wheel").shell("/bin/bash").login("eto")

        .rcUpdate()
        /**/.add("net.eth0").toDefault()
        /**/.add("ntp-client").toDefault()
        /**/.add("sshd").toDefault()
        /**/.add("syslog-ng").toDefault()
        /**/.add("xdm").toDefault()
        .done()

        .withGoogleChrome("google-chrome-beta_32.0.1700.14-1_amd64.deb")

        .build();

    if (options.stage) {
      installer.stage();
    }

    if (options.objectos) {
      installer.objectos();
    }

    if (options.ekernel) {
      installer.ekernel();
    }

    if (options.eworld) {
      installer.eworld();
    }

    if (options.grub) {
      installer.grub();
    }

    if (options.rio) {
      installer.rio();
    }

    installer.symlink();
    installer.chmod();
    installer.useradd();
    installer.rcUpdate();
  }
View Full Code Here


    return new DisklessEtoPrepareOptions();
  }

  @Override
  protected void executeCommand(DisklessEtoPrepareOptions options) {
    GentooInstaller installer = gentoo.installer(this)
        .tempDirAt(dirs.etoVar())
        .mountDirAt(dirs.etoMountDir())
        .stageServer(options.fileServer())
        .distfilesServer(options.distfilesServer())
        .resourcesAt("/diskless/eto")
        .resourcesListAt("/diskless/eto-files.txt")
        .resourcesMapAt("/diskless/eto-maps.txt")
        .resourcesContext(options)
        .setProfileTo(4)
        .kernelVersion("3.10.17")

        .symlink("/etc/init.d/net.lo").to("/etc/init.d/net.eth0")

        .chmod()
        /**/.file("/etc/local.d/00-iro-eto-ssh-key.start").to(755)
        .done()

        .useradd().home("/iro").gid("users").groups("wheel").shell("/bin/bash").login("iro")

        .rcUpdate()
        /**/.add("net.eth0").toDefault()
        /**/.add("sshd").toDefault()
        /**/.add("syslog-ng").toDefault()
        .done()

        .withPxe()

        .build();

    if (options.all()) {

    }

    if (options.stage) {
      installer.stage();
    }

    if (options.objectos) {
      installer.objectos();
    }

    if (options.ekernel) {
      installer.ekernel();
    }

    if (options.eworld) {
      installer.eworld();
    }

    if (options.initramfs) {
      installer.initramfs();
    }

    if (options.grub) {
      installer.grub();
    }

    if (options.rio) {
      installer.rio();
    }

    installer.symlink();
    installer.chmod();
    installer.useradd();
    installer.rcUpdate();
  }
View Full Code Here

TOP

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

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.