diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2018-01-10 15:40:24 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2018-01-10 15:40:24 -0500 |
commit | e11c2d0de7b0aec7157a3fd4d5344eb79304bd86 (patch) | |
tree | 013e073536ffff29b1f363c97ff37713dd46956d | |
parent | grs/Netboot.py: use only xz compression (diff) | |
download | grss-e11c2d0de7b0aec7157a3fd4d5344eb79304bd86.tar.gz grss-e11c2d0de7b0aec7157a3fd4d5344eb79304bd86.tar.bz2 grss-e11c2d0de7b0aec7157a3fd4d5344eb79304bd86.zip |
grs/Netboot.py: use busybox built by genkernel
-rw-r--r-- | grs/Netboot.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/grs/Netboot.py b/grs/Netboot.py index 1b3ea80..985bcfd 100644 --- a/grs/Netboot.py +++ b/grs/Netboot.py @@ -74,6 +74,13 @@ class Netboot(HashIt): Execute(cmd, timeout=600, logfile=self.logfile, shell=True) os.chdir(cwd) + ''' The issue here was that busybox was build in the host env like the + kernel and that means that we are using the host's ARCH and the cpuflags + which are now poluting the initramfs. The better approach to building + a kernel and initramfs is to drop the Kernel.py module altogether and + emerge genkernel in the fledgeling system via the script directive, set + genkernel.conf via the populate directive and then just run genkernel. + # 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. @@ -81,6 +88,7 @@ class Netboot(HashIt): 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') |