summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrc.sysinit6
1 files changed, 5 insertions, 1 deletions
diff --git a/rc.sysinit b/rc.sysinit
index c62ae8d..fba11b2 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -297,7 +297,11 @@ fi
stat_busy "Mounting Local Filesystems"
/bin/mount -n -o remount,rw /
-cat /proc/mounts >| /etc/mtab
+if [ -x /bin/findmnt -a -e /proc/self/mountinfo ]; then
+ /bin/findmnt -rnu -o SOURCE,TARGET,FSTYPE,OPTIONS >| /etc/mtab
+else
+ cat /proc/mounts >| /etc/mtab
+fi
run_hook sysinit_premount
# now mount all the local filesystems
/bin/mount -a -t $NETFS -O no_netdev