aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-10-07 09:48:19 -0700
committerAaron Griffin <aaronmgriffin@gmail.com>2009-10-07 09:48:19 -0700
commit38f6917c9ec97f5d72fb0c72b001e7a97bfe6122 (patch)
tree93e551d8c4ac676001bf998f00231142f3163f4b /rc.sysinit
parent38ae149c009656392f09e5d6384adf88f02173a3 (diff)
downloadinitscripts-38f6917c9ec97f5d72fb0c72b001e7a97bfe6122.tar.xz
Empty mtab instead of deleting it
This fixes an issue with mount.aufs which requires mtab to be present and apparently will not create it on its own See FS#16497 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 5f5c99a..a0c4e6f 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -281,7 +281,7 @@ fi
stat_busy "Mounting Local Filesystems"
/bin/mount -n -o remount,rw /
-/bin/rm -f /etc/mtab*
+: > /etc/mtab
# make sure / gets written to /etc/mtab
/bin/mount -o remount,rw /
# Write /proc, /sys and /dev to /etc/mtab