1 |
commit: d8303e6a6da6ab34a2d08b04bc026a211e00d2be |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 28 17:19:19 2017 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 28 17:19:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=d8303e6a |
7 |
|
8 |
grs/Netboot.py: build busybox inside the system chroot |
9 |
|
10 |
grs/Netboot.py | 8 ++++++++ |
11 |
1 file changed, 8 insertions(+) |
12 |
|
13 |
diff --git a/grs/Netboot.py b/grs/Netboot.py |
14 |
index c4bb9ff..62cc17c 100644 |
15 |
--- a/grs/Netboot.py |
16 |
+++ b/grs/Netboot.py |
17 |
@@ -73,6 +73,14 @@ class Netboot(HashIt): |
18 |
Execute(cmd, timeout=600, logfile=self.logfile, shell=True) |
19 |
os.chdir(cwd) |
20 |
|
21 |
+ # 2.5 Don't trust genkernel's busybox, but copy in our own version |
22 |
+ # built in the system chroot. This ensures it will work on the |
23 |
+ # target system. |
24 |
+ # TODO: We need to make sure that we've linked busybox staticly. |
25 |
+ busybox_src = os.path.join(self.portage_configroot, 'bin/busybox') |
26 |
+ busybox_dst = os.path.join(self.kernelroot, 'initramfs/bin/busybox') |
27 |
+ shutil.copy(busybox_src, busybox_dst) |
28 |
+ |
29 |
# 3. Make the squashfs image in the tmpdir directory. |
30 |
squashfs_dir = os.path.join(initramfs_root, 'mnt/cdrom') |
31 |
shutil.rmtree(squashfs_dir, ignore_errors=True) |