Remove the use of 'env -i' when calling switch_root due to gentoo bug #248688

cleanup-cruft
Andrew Gaffney 16 years ago
parent ea9828ab17
commit 5f9a6b2749

@ -2,6 +2,10 @@
# Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney # Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney
# Distributed under the GPL v2 # 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: 16 Dec 2008; Andrew Gaffney <agaffney@gentoo.org> netboot/linuxrc.x:
Run the getty commands with proper arguments so they don't die immediately Run the getty commands with proper arguments so they don't die immediately

@ -698,7 +698,7 @@ umount /sys || echo '*: Failed to unmount the ramdisk /sys!'
umount /proc || echo '*: Failed to unmount the ramdisk /proc!' umount /proc || echo '*: Failed to unmount the ramdisk /proc!'
echo -e "${BOLD}.${NORMAL}" 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 # If we get here, something bad has happened
splash 'verbose' splash 'verbose'

Loading…
Cancel
Save