Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/root
Show All 24 Lines | root_start() | ||||
*) | *) | ||||
if ! mount -uw /; then | if ! mount -uw /; then | ||||
echo 'Mounting root filesystem rw failed, startup aborted' | echo 'Mounting root filesystem rw failed, startup aborted' | ||||
stop_boot true | stop_boot true | ||||
fi | fi | ||||
;; | ;; | ||||
esac | esac | ||||
umount -a >/dev/null 2>&1 | # Evey filesystem listed in fstab except root is umounted here so that | ||||
# subsequent mounting services could operate on a well-defined state. | |||||
umount -A | |||||
# If we booted a special kernel remove the record | # If we booted a special kernel remove the record | ||||
# so we will boot the default kernel next time. | # so we will boot the default kernel next time. | ||||
if [ -x /sbin/nextboot ]; then | if [ -x /sbin/nextboot ]; then | ||||
/sbin/nextboot -D > /dev/null 2>&1 | /sbin/nextboot -D > /dev/null 2>&1 | ||||
fi | fi | ||||
} | } | ||||
load_rc_config $name | load_rc_config $name | ||||
run_rc_command "$1" | run_rc_command "$1" |