From: Andrew Gaffney Date: Wed, 17 Dec 2008 15:24:14 +0000 (-0600) Subject: Remove the use of 'env -i' when calling switch_root due to gentoo bug #248688 X-Git-Tag: v3.4.10.903~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5f9a6b2749afac63015bf83a5b466a264db729e9;p=genkernel.git Remove the use of 'env -i' when calling switch_root due to gentoo bug #248688 --- 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'