aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2004-07-21 22:15:59 +0000
committerJudd Vinet <judd@archlinux.org>2004-07-21 22:15:59 +0000
commit9f5d7b15d7b58b7a3d80a8923a2ff1952c90966a (patch)
treeae42eae57e8a01907afe2cb17efd75253d2f2718 /rc.sysinit
parentef0a365fc88fd1b02883dd42e0afb0929fbfa3f4 (diff)
downloadinitscripts-9f5d7b15d7b58b7a3d80a8923a2ff1952c90966a.tar.xz
re-mount /sys and /proc once / is rw so the entries can be written to /etc/mtab
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit4
1 files changed, 4 insertions, 0 deletions
diff --git a/rc.sysinit b/rc.sysinit
index a6140e5..2214534 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -81,6 +81,10 @@ fi
stat_busy "Mounting Local Filesystems"
/bin/mount -n -o remount,rw /
/bin/rm -f /etc/mtab*
+# 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
/bin/mount -a -t nonfs,nosmbfs,noncpfs,nosysfs
stat_done