From 8d2fa8c69ab294ebad723dc8517532a0234b6e7e Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Mon, 5 Jul 2010 14:52:14 -0300 Subject: [PATCH] Use findmnt to make mtab Use findmnt command new in util-linux-ng 2.18 to make mtab based on /proc/self/mountinfo. Otherwise use current method. Signed-off-by: Gerardo Exequiel Pozzi --- rc.sysinit | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index c62ae8d..28c6ba8 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 ]; 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 -- 1.7.1