From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 11E78138AE9 for ; Thu, 28 Dec 2017 17:22:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 51EFDE0B73; Thu, 28 Dec 2017 17:22:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 343B0E0B73 for ; Thu, 28 Dec 2017 17:22:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BF07933FE49 for ; Thu, 28 Dec 2017 17:22:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 58DD7AE8F for ; Thu, 28 Dec 2017 17:22:04 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1514481559.d8303e6a6da6ab34a2d08b04bc026a211e00d2be.blueness@gentoo> Subject: [gentoo-commits] proj/grss:master commit in: grs/ X-VCS-Repository: proj/grss X-VCS-Files: grs/Netboot.py X-VCS-Directories: grs/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: d8303e6a6da6ab34a2d08b04bc026a211e00d2be X-VCS-Branch: master Date: Thu, 28 Dec 2017 17:22:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 21d526e2-4eed-4667-a54c-85079306a851 X-Archives-Hash: 6a7f5c64e925ccfff26650ddc020a724 commit: d8303e6a6da6ab34a2d08b04bc026a211e00d2be Author: Anthony G. Basile gentoo org> AuthorDate: Thu Dec 28 17:19:19 2017 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Thu Dec 28 17:19:19 2017 +0000 URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=d8303e6a grs/Netboot.py: build busybox inside the system chroot grs/Netboot.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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)