diff options
author | Thomas Bächler <thomas@archlinux.org> | 2010-06-09 00:47:17 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2010-06-09 19:35:34 +0200 |
commit | 3228db8a5fc703579250b7656bf5ea4c876aa099 (patch) | |
tree | 222e93d53b66457840795cbe722d6520dfd5172e /rc.sysinit | |
parent | 37b55308f19b7743673842581469b8379ec8525b (diff) | |
download | initscripts-3228db8a5fc703579250b7656bf5ea4c876aa099.tar.xz |
Initialize /etc/mtab by copying /proc/mounts
Our current process of initializing /etc/mtab is
hackish and probably error-prone, replace it by
simply copying /proc/mounts.
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -297,13 +297,7 @@ fi stat_busy "Mounting Local Filesystems" /bin/mount -n -o remount,rw / -: >| /etc/mtab -# make sure / gets written to /etc/mtab -/bin/mount -o remount,rw / -# Write /proc, /sys and /dev to /etc/mtab -if [ -e /proc/mounts ]; then - /bin/grep -e "/proc " -e "/sys " -e "/dev " /proc/mounts >> /etc/mtab -fi +cat /proc/mounts >| /etc/mtab run_hook sysinit_premount # now mount all the local filesystems /bin/mount -a -t $NETFS -O no_netdev |