.add("portage.tar.bz2")
.exec();
}
private void stage(EtoOsLivecdOptions options) {
Directory osVar = dirs.osVar();
File isoFile = osVar.fileAt("install-amd64-minimal.iso");
Directory isoDir = dirs.isoMountDir();
Directory livecdDir = dirs.livecdMountDir();
infoAction("stage");
info("Staging required files.");
info();
info("Unpacking iso file.");
mount(isoFile.getAbsolutePath())
.options("-o", "loop")
.to(isoDir);
Procs.newCommand()
.add("unsquashfs")
.add("-f")
.add("-d")
.add(livecdDir.getAbsolutePath())
.add(isoDir.fileAt("image.squashfs").getAbsolutePath())
.exec();
umount(isoDir);
info();
info("Unpacking portage snapshot.");
untar(osVar.fileAt("portage.tar.bz2"))
.bunzip2()
.preserve()
.toDir(livecdDir.dirAt("usr"));
}