}
private void emerge(EtoOsLivecdOptions options) {
HttpServer server = options.distfilesServer();
Directory mountDir = dirs.livecdMountDir();
ChrootMount mount = ChrootMount.at(mountDir).mount();
infoAction("emerge");
info("Emerging extra packages.");
server.download("jdk-6u45-linux-x64.bin")
.toDir(mountDir.dirAt("usr/portage/distfiles"));
try {
Chroot chroot = Chroot.at(mountDir)
.add("source /etc/profile")
.add("export PS1=\"(chroot) $PS1\"")
.add("emerge -v sun-jdk-bin")
.exec();
Stdout.print(chroot);
} finally {
ChrootUmount umount = mount.umount();
Stdout.print(umount);
}
}