3 # echo "Starting shell from md boot"
6 /sbin/mount_tmpfs tmpfs /tmp
7 /sbin/mount_tmpfs tmpfs /var
11 echo "Starting recovery shell!"
16 for rcs in /etc/rc.*; do
22 echo "Mounting new root"
25 REAL_ROOT=`sysctl -n vfs.real_root`
26 if [ "$?" -ne "0" ]; then
27 echo "Kernel does not have vfs.real_root sysctl. Please update your" \
28 "kernel if you intend to use initrd"
35 if [ "$TYPE" = "local" ]; then
38 echo "executing /sbin/mount -t $FSTYPE $4 $MOUNTFROM /new_root"
39 /sbin/mount -t $FSTYPE $4 $MOUNTFROM /new_root
40 if [ "$?" -ne "0" ]; then
44 if [ -x "/etc/rcmount_${TYPE}" ]; then
45 . /etc/rcmount_${TYPE} $@
46 if [ "$?" -ne "0" ]; then
59 echo "Mounting devfs on new root"
60 #/sbin/mount_devfs /new_root/dev
61 /sbin/mount_null /dev /new_root/dev