Remove the use of 'env -i' when calling switch_root due to gentoo bug #248688
authorAndrew Gaffney <agaffney@gentoo.org>
Wed, 17 Dec 2008 15:24:14 +0000 (09:24 -0600)
committerAndrew Gaffney <agaffney@gentoo.org>
Wed, 17 Dec 2008 15:24:14 +0000 (09:24 -0600)
ChangeLog
defaults/linuxrc

index 0f3f09bb415771e8ac0e0c5f8cbd99ad04dc1022..2be89abe62c1394a337c3a24410f7bdaa8f56e55 100644 (file)
--- 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 <agaffney@gentoo.org> defaults/linuxrc:
+  Remove the use of 'env -i' when calling switch_root due to gentoo bug
+  #248688
+
   16 Dec 2008; Andrew Gaffney <agaffney@gentoo.org> netboot/linuxrc.x:
   Run the getty commands with proper arguments so they don't die immediately
 
index 4d213147b4aa6327f4ef1792746d9993c8d22873..d506f838f8d76af0718345ec56330924e14e466e 100755 (executable)
@@ -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'