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.3 2004/01/27 00:42:45 rob Exp $
15 start_cmd="root_start"
20 # root normally must be read/write, but if this is a BOOTP NFS
21 # diskless boot it does not have to be.
23 case ${root_rw_mount} in
27 if ! mount -u -o rw /; then
28 echo 'Mounting root filesystem rw failed, startup aborted'
33 umount -a >/dev/null 2>&1
35 # If we booted a special kernel remove the record
36 # so we will boot the default kernel next time.
37 if [ -e /boot/nextkernel ]; then
38 rm -f /boot/nextkernel