aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2004-07-23 01:03:08 +0000
committerJudd Vinet <judd@archlinux.org>2004-07-23 01:03:08 +0000
commit20dceb289f61b69a98c6377921ee2a009aeefd98 (patch)
tree6c7e12147cae05bf756d0b6703cf33d1d97c2424 /rc.sysinit
parent9f5d7b15d7b58b7a3d80a8923a2ff1952c90966a (diff)
downloadinitscripts-20dceb289f61b69a98c6377921ee2a009aeefd98.tar.xz
re-mounted / after removing /etc/mtab, so it's written to mtab properly
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 2214534..eeda7f3 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -81,10 +81,12 @@ fi
stat_busy "Mounting Local Filesystems"
/bin/mount -n -o remount,rw /
/bin/rm -f /etc/mtab*
+# make sure / gets written to /etc/mtab
+/bin/mount -o remount,rw /
# re-mount /proc and /sys so they can be written to /etc/mtab
umount /proc && mount -t proc none /proc
[ "`grep sysfs /proc/filesystems`" ] && umount /sys && mount -t sysfs none /sys
-# now mount all local mounts in /etc/fstab
+# now mount all the local filesystems
/bin/mount -a -t nonfs,nosmbfs,noncpfs,nosysfs
stat_done