aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-01-20 16:46:04 +0000
committerBill Nottingham <notting@redhat.com>2000-01-20 16:46:04 +0000
commit91eebcef71afd5b6039f43f8cdc76f71449640d5 (patch)
tree81811107fc2b3520e453fd7a3d27d5a4d6d8ee1e
parent91e95ded220c0a5526690781214d087d0c2fa22a (diff)
downloadinitscripts-91eebcef71afd5b6039f43f8cdc76f71449640d5.tar
initscripts-91eebcef71afd5b6039f43f8cdc76f71449640d5.tar.gz
initscripts-91eebcef71afd5b6039f43f8cdc76f71449640d5.tar.bz2
initscripts-91eebcef71afd5b6039f43f8cdc76f71449640d5.tar.xz
initscripts-91eebcef71afd5b6039f43f8cdc76f71449640d5.zip
remove mtab~ files earlier
-rwxr-xr-xrc.d/rc.sysinit25
1 files changed, 10 insertions, 15 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 609f6c13..a8667f9a 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -208,19 +208,21 @@ 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
+# Clear mtab
+>/etc/mtab
+
+# Remove stale backups
+rm -f /etc/mtab~
+
+# Enter root and /proc into mtab.
+mount -f /
+mount -f /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 /
fi
-# XXX Disabled to avoid complaints on root later with quotaon -a
-#if [ -x /sbin/quotaon ]; then
-# action "Turning on user and group quotas for root filesystem" /sbin/quotaon /
-#fi
-
# The root filesystem is now read-write, so we can now log via syslog() directly..
if [ -n "$IN_INITLOG" ]; then
IN_INITLOG=
@@ -228,13 +230,6 @@ fi
echo ${HOSTNAME} > /etc/HOSTNAME
-# Clear mtab
->/etc/mtab
-
-# Enter root and /proc into mtab.
-mount -f /
-mount -f /proc
-
if ! grep -i nomodules /proc/cmdline >/dev/null && [ -f /proc/ksyms ]; then
USEMODULES=y
else
@@ -437,7 +432,7 @@ if [ -x /sbin/quotaon ]; then
fi
# Clean out /etc.
-rm -f /etc/mtab~ /fastboot /fsckoptions /forcefsck
+rm -f /fastboot /fsckoptions /forcefsck
# Do we need (w|u)tmpx files? We don't set them up, but the sysadmin might...
_NEED_XFILES=