aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-07-21 13:04:29 +0000
committerBill Nottingham <notting@redhat.com>1999-07-21 13:04:29 +0000
commit2ae23baea22c0002c027c2cbd4925b78a829ccc0 (patch)
tree8d08aba0cb779e78740da30dadd6ced84b10e68d /rc.d
parentb0ede98a468780a0c83676bbc9a2f0ac17ce34e2 (diff)
downloadinitscripts-2ae23baea22c0002c027c2cbd4925b78a829ccc0.tar
initscripts-2ae23baea22c0002c027c2cbd4925b78a829ccc0.tar.gz
initscripts-2ae23baea22c0002c027c2cbd4925b78a829ccc0.tar.bz2
initscripts-2ae23baea22c0002c027c2cbd4925b78a829ccc0.tar.xz
initscripts-2ae23baea22c0002c027c2cbd4925b78a829ccc0.zip
mount /proc before checking / so that volume labels can work
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit9
1 files changed, 7 insertions, 2 deletions
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 /