aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
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