From 38f3df541486d15bdf8e76c9e2120bddbef1b647 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 24 Jan 2003 22:17:23 +0000 Subject: fix NFS root (#82685) --- rc.d/rc.sysinit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.d/rc.sysinit') 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 / -- cgit v1.2.1