aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-01-24 22:17:23 +0000
committerBill Nottingham <notting@redhat.com>2003-01-24 22:17:23 +0000
commit38f3df541486d15bdf8e76c9e2120bddbef1b647 (patch)
tree976346259afe7f9a0387ea8d10b0d402b0a4faef /rc.d
parent9b83b8e782344f4890ce35b3b3efac65355eb220 (diff)
downloadinitscripts-38f3df541486d15bdf8e76c9e2120bddbef1b647.tar
initscripts-38f3df541486d15bdf8e76c9e2120bddbef1b647.tar.gz
initscripts-38f3df541486d15bdf8e76c9e2120bddbef1b647.tar.bz2
initscripts-38f3df541486d15bdf8e76c9e2120bddbef1b647.tar.xz
initscripts-38f3df541486d15bdf8e76c9e2120bddbef1b647.zip
fix NFS root (#82685)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index a38f5dcb..79245239 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -239,7 +239,7 @@ fi
_RUN_QUOTACHECK=0
-ROOTFSTYPE=`awk '/ \/ / { print $3 }' /proc/mounts`
+ROOTFSTYPE=`awk '/ \/ / && ($3 !~ /rootfs/) { print $3 }' /proc/mounts`
if [ -z "$fastboot" -a "X$ROOTFSTYPE" != "Xnfs" ]; then
STRING=$"Checking root filesystem"
@@ -316,7 +316,7 @@ if [ -x /sbin/isapnp -a -f /etc/isapnp.conf -a ! -f /proc/isapnp ]; then
fi
# Remount the root filesystem read-write.
-state=`awk '/(^\/dev\/root| \/ )/ { print $4 }' /proc/mounts`
+state=`awk '/ \/ / && ($3 !~ /rootfs/) { print $4 }' /proc/mounts`
[ "$state" != "rw" ] && \
action $"Remounting root filesystem in read-write mode: " mount -n -o remount,rw /