]> pd.if.org Git - startuptools/commitdiff
force /etc/mtab to be a symlink to /proc/mounts
authorNathan Wagner <nw@hydaspes.if.org>
Sun, 28 May 2017 01:52:12 +0000 (01:52 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sun, 28 May 2017 01:52:12 +0000 (01:52 +0000)
scripts/rc.sysinit

index 8f030c7edc19697c91a46d29ee2888954b7022ca..b693ecd41f93d77dc0d1499f27c59379e75e53dc 100644 (file)
@@ -144,9 +144,9 @@ status_begin mounting remaining filesystems
 mount -a -t noproc,sysfs,devtmpfs,devpts,tmpfs
 status_check
 
+# force mtab symlink
 rm -f /etc/mtab
-mount -af
-mount -f /
+ln -s /proc/mounts /etc/mtab
 
 # * do any boot time /tmp cleanup or similar