# Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney
# 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:
Call switch_root with 'env -i' to clean out the kernel-defined key/value
pairs
# mount -t tmpfs tmpfs $MEMORY
# fi
# else
- good_msg "Mounting ramdisk to $MEMORY for unionfs support..."
- mount -t tmpfs tmpfs $MEMORY
+# good_msg "Mounting ramdisk to $MEMORY for unionfs support..."
+# mount -t tmpfs tmpfs $MEMORY
# fi
mkdir /tmp
umount /proc || echo '*: Failed to unmount the ramdisk /proc!'
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
splash 'verbose'