# 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
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'