aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-12-28 12:19:19 -0500
committerAnthony G. Basile <blueness@gentoo.org>2017-12-28 12:19:19 -0500
commitd8303e6a6da6ab34a2d08b04bc026a211e00d2be (patch)
tree1e06d5809b4be3d43f5dee2226c4da3cb6391a36
parentgrs/Netboot.py: fix alt digest name (diff)
downloadgrss-d8303e6a6da6ab34a2d08b04bc026a211e00d2be.tar.gz
grss-d8303e6a6da6ab34a2d08b04bc026a211e00d2be.tar.bz2
grss-d8303e6a6da6ab34a2d08b04bc026a211e00d2be.zip
grs/Netboot.py: build busybox inside the system chroot
-rw-r--r--grs/Netboot.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/grs/Netboot.py b/grs/Netboot.py
index c4bb9ff..62cc17c 100644
--- a/grs/Netboot.py
+++ b/grs/Netboot.py
@@ -73,6 +73,14 @@ class Netboot(HashIt):
Execute(cmd, timeout=600, logfile=self.logfile, shell=True)
os.chdir(cwd)
+ # 2.5 Don't trust genkernel's busybox, but copy in our own version
+ # built in the system chroot. This ensures it will work on the
+ # target system.
+ # TODO: We need to make sure that we've linked busybox staticly.
+ busybox_src = os.path.join(self.portage_configroot, 'bin/busybox')
+ busybox_dst = os.path.join(self.kernelroot, 'initramfs/bin/busybox')
+ shutil.copy(busybox_src, busybox_dst)
+
# 3. Make the squashfs image in the tmpdir directory.
squashfs_dir = os.path.join(initramfs_root, 'mnt/cdrom')
shutil.rmtree(squashfs_dir, ignore_errors=True)