summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-10-18 18:01:33 +0200
committerTom Gundersen <teg@jklm.no>2011-10-18 18:28:24 +0200
commit750db158fca0681273b65b354716469168e341c1 (patch)
tree9db858d4c22cdde1e7eaa6a1c6df775acf3fde76
parent4e45e539e811a1be7be024323c74ec3cccddc007 (diff)
mtab: delete any stale locks2011.10.2
This should fix (to the extent possible) #FS26337. Figured-out-by: Dave Reisner <d@falconindy.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
-rwxr-xr-xrc.sysinit1
1 files changed, 1 insertions, 0 deletions
diff --git a/rc.sysinit b/rc.sysinit
index d6e7bbd..dffea4d 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -200,6 +200,7 @@ status "Remounting Root Read/Write" \
# don't touch /etc/mtab if it is a symlink to /proc/self/mounts
if [[ ! -L /etc/mtab ]]; then
stat_busy "Creating mtab"
+ rm -f /etc/mtab~* # delete any stale locks
if [[ -x $(type -P findmnt) && -e /proc/self/mountinfo ]]; then
findmnt -rnu -o SOURCE,TARGET,FSTYPE,OPTIONS >| /etc/mtab
else