Call switch_root with full path

cleanup-cruft
Andrew Gaffney 16 years ago
parent fa9cbeeda8
commit 41f44b1d42

@ -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/initrd.scripts,
defaults/linuxrc:
Call switch_root with full path
14 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> defaults/linuxrc: 14 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> defaults/linuxrc:
Call switch_root with 'env -i' to clean out the kernel-defined key/value Call switch_root with 'env -i' to clean out the kernel-defined key/value
pairs pairs

@ -991,8 +991,8 @@ setup_unionfs() {
# mount -t tmpfs tmpfs $MEMORY # mount -t tmpfs tmpfs $MEMORY
# fi # fi
# else # else
good_msg "Mounting ramdisk to $MEMORY for unionfs support..." # good_msg "Mounting ramdisk to $MEMORY for unionfs support..."
mount -t tmpfs tmpfs $MEMORY # mount -t tmpfs tmpfs $MEMORY
# fi # fi
mkdir /tmp mkdir /tmp

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