Call switch_root with 'env -i' to clean out the kernel-defined key/value pairs

cleanup-cruft
Andrew Gaffney 16 years ago
parent 48b282a85d
commit fa9cbeeda8

@ -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
14 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> defaults/linuxrc:
Call switch_root with 'env -i' to clean out the kernel-defined key/value
pairs
14 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> defaults/linuxrc: 14 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> defaults/linuxrc:
Skip good_root check for /dev/nfs for gentoo bug #246759 Skip good_root check for /dev/nfs for gentoo bug #246759

@ -668,7 +668,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 switch_root -c "/dev/console" "${CHROOT}" "${REAL_INIT:-/sbin/init}" "${INIT_OPTS}" exec env -i 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