}
@Override
void execute() {
HttpServer fileServer = pojo.getFileServer();
Directory tempDir = pojo.getTempDir();
Directory mountDir = pojo.getMountDir();
infoAction("stage");
info("Staging required files.");
download(fileServer).to(tempDir)
.add("stage3-amd64.tar.bz2")
.add("portage.tar.bz2")
.exec();
info();
info("Unpacking stage3 file.");
untar(tempDir.fileAt("stage3-amd64.tar.bz2"))
.bunzip2()
.preserve()
.toDir(mountDir);
info();
info("Unpacking portage snapshot.");
untar(tempDir.fileAt("portage.tar.bz2"))
.bunzip2()
.preserve()
.toDir(mountDir.dirAt("usr"));
}