diff options
author | dg <dg@FreeBSD.org> | 1994-09-23 18:02:22 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-09-23 18:02:22 +0000 |
commit | a76ea3b1b503d484ee95042df1740492e4183183 (patch) | |
tree | 1a14304d426449428670c5b29c798345f44f09d3 /etc | |
parent | 467d0c86a3c4dcb2c15c354dd9cd6a077ef672ef (diff) | |
download | FreeBSD-src-a76ea3b1b503d484ee95042df1740492e4183183.zip FreeBSD-src-a76ea3b1b503d484ee95042df1740492e4183183.tar.gz |
root must be remounted read/write fairly early in the startup procedure
both for NFS diskless and for VFS LKMs.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.2 1994/09/19 23:13:37 ache Exp $ +# $Id: rc,v 1.30 1994/09/23 07:16:16 rgrimes Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -58,11 +58,9 @@ trap "echo 'Reboot interrupted'; exit 1" 3 swapon -a -# Check for diskless boot, and remount the root RW. -a=`mount` -if [ 0 != `expr "$a" : '^[^/]*:/.* on /'` ] ; then - mount -u -o rw / -fi +# root must be read/write both for NFS diskless and for VFS LKMs before +# proceeding any further. +mount -u -o rw / umount -a >/dev/null 2>&1 mount -a -t nonfs |