3 # echo "Starting shell from md boot"
8 /sbin
/mount_tmpfs tmpfs
/tmp
9 /sbin
/mount_tmpfs tmpfs
/var
12 # / is mounted ro by default
13 /sbin
/mount_ufs
-w /dev
/md0s0
/
17 echo "Starting recovery shell!"
25 for rcs
in /etc
/rc.
*; do
31 echo "Mounting new root"
34 REAL_ROOT
=`sysctl -n vfs.real_root`
35 if [ "$?" -ne "0" ]; then
36 echo "Kernel does not have vfs.real_root sysctl. Please update your" \
37 "kernel if you intend to use initrd"
40 if [ -z "${REAL_ROOT}" ]; then
41 echo "vfs.real_root sysctl not set. Dropping to a rescue shell."
48 if [ "$TYPE" = "local" ]; then
52 # Make sure MOUNTFROM begins with /dev/
53 substr
="${MOUNTFROM##/dev/}"
54 if [ "$substr" = "$MOUNTFROM" ]; then
55 MOUNTFROM
="/dev/$MOUNTFROM"
58 echo "executing /sbin/mount -t $FSTYPE $4 $MOUNTFROM /new_root"
59 /sbin
/mount
-o ro
-t $FSTYPE $4 $MOUNTFROM /new_root
60 if [ "$?" -ne "0" ]; then
64 if [ -x "/etc/rcmount_${TYPE}" ]; then
65 .
/etc
/rcmount_
${TYPE} $@
66 if [ "$?" -ne "0" ]; then
75 read UDEVD_PID
< /var
/run
/udevd.pid
84 echo "Mounting devfs on new root"
85 #/sbin/mount_devfs /new_root/dev
86 /sbin
/mount_null
/dev
/new_root
/dev