From 2ae23baea22c0002c027c2cbd4925b78a829ccc0 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 21 Jul 1999 13:04:29 +0000 Subject: mount /proc before checking / so that volume labels can work --- rc.d/rc.sysinit | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'rc.d') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 322d6f6e..80ca3889 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -117,6 +117,10 @@ else domainname "" fi +# Mount /proc (done here so volume labels can work with fsck) + +action "Mounting proc filesystem" mount -n -t proc /proc /proc + if [ -f /fsckoptions ]; then fsckoptions=`cat /fsckoptions` else @@ -166,8 +170,6 @@ fi # check for arguments -mount -t proc /proc /proc - if grep -i nopnp /proc/cmdline >/dev/null ; then PNP= else @@ -186,6 +188,9 @@ fi # Remount the root filesystem read-write. action "Remounting root filesystem in read-write mode" mount -n -o remount,rw / +# Add /proc to /etc/mtab +mount -f -t proc /proc /proc + # Update quotas if fsck was run on /. if [ X"$_RUN_QUOTACHECK" = X1 -a -x /sbin/quotacheck ]; then action "Checking root filesystem quotas" /sbin/quotacheck -v / -- cgit v1.2.1