From 5f9a6b2749afac63015bf83a5b466a264db729e9 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Wed, 17 Dec 2008 09:24:14 -0600 Subject: [PATCH] Remove the use of 'env -i' when calling switch_root due to gentoo bug #248688 --- ChangeLog | 4 ++++ defaults/linuxrc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0f3f09b..2be89ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney # Distributed under the GPL v2 + 17 Dec 2008; Andrew Gaffney defaults/linuxrc: + Remove the use of 'env -i' when calling switch_root due to gentoo bug + #248688 + 16 Dec 2008; Andrew Gaffney netboot/linuxrc.x: Run the getty commands with proper arguments so they don't die immediately diff --git a/defaults/linuxrc b/defaults/linuxrc index 4d21314..d506f83 100755 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -698,7 +698,7 @@ umount /sys || echo '*: Failed to unmount the ramdisk /sys!' umount /proc || echo '*: Failed to unmount the ramdisk /proc!' echo -e "${BOLD}.${NORMAL}" -exec env -i /sbin/switch_root -c "/dev/console" "${CHROOT}" "${REAL_INIT:-/sbin/init}" "${INIT_OPTS}" +exec /sbin/switch_root -c "/dev/console" "${CHROOT}" "${REAL_INIT:-/sbin/init}" "${INIT_OPTS}" # If we get here, something bad has happened splash 'verbose' -- 2.26.2