From 750db158fca0681273b65b354716469168e341c1 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Tue, 18 Oct 2011 18:01:33 +0200 Subject: mtab: delete any stale locks This should fix (to the extent possible) #FS26337. Figured-out-by: Dave Reisner Signed-off-by: Tom Gundersen --- rc.sysinit | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3