1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

root must be remounted read/write fairly early in the startup procedure

both for NFS diskless and for VFS LKMs.
This commit is contained in:
David Greenman 1994-09-23 18:02:22 +00:00
parent fcd07b1721
commit 45945cd71c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3036

10
etc/rc
View File

@ -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