3 # $NetBSD: root,v 1.2 2000/05/13 08:45:09 lukem Exp $
4 # $FreeBSD: src/etc/rc.d/root,v 1.5 2002/10/31 02:06:05 gordon Exp $
5 # $DragonFly: src/etc/rc.d/root,v 1.1 2003/07/24 06:35:37 dillon Exp $
10 # KEYWORD: DragonFly FreeBSD NetBSD
15 start_cmd="root_start"
22 # root normally must be read/write, but if this is a BOOTP NFS
23 # diskless boot it does not have to be.
25 case ${root_rw_mount} in
29 if ! mount -u -o rw /; then
30 echo 'Mounting root filesystem rw failed, startup aborted'
35 umount -a >/dev/null 2>&1
37 # If we booted a special kernel remove the record
38 # so we will boot the default kernel next time.
39 if [ -e /boot/nextkernel ]; then
40 rm -f /boot/nextkernel
45 # root normally must be read/write, but if this is a BOOTP NFS
46 # diskless boot it does not have to be.
48 case ${root_rw_mount} in
52 if ! mount -u -o rw /; then
53 echo 'Mounting root filesystem rw failed, startup aborted'
59 umount -a >/dev/null 2>&1
62 # If we booted a special kernel remove the record
63 # so we will boot the default kernel next time.
64 if [ -e /boot/nextkernel ]; then
65 rm -f /boot/nextkernel
69 umount -a >/dev/null 2>&1