mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-17 16:10:46 +01:00
check for diskless boot, and remount / RW in that case.
This commit is contained in:
parent
667f0edb2b
commit
2e3ceddd61
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1692
8
etc/rc
8
etc/rc
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $Id: rc,v 1.25 1994/06/04 00:43:59 ache Exp $
|
||||
# $Id: rc,v 1.26 1994/06/05 16:03:57 ats Exp $
|
||||
# From: @(#)rc 5.27 (Berkeley) 6/5/91
|
||||
|
||||
# System startup script run by init on autoboot
|
||||
@ -59,6 +59,12 @@ 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
|
||||
|
||||
umount -a >/dev/null 2>&1
|
||||
mount -a -t nonfs
|
||||
rm -f /fastboot # XXX (root now writeable)
|
||||
|
Loading…
Reference in New Issue
Block a user