Red Hat Bugzilla – Bug 219369
Mount /var and /var/lock explicitly to avoid disapparing locks
Last modified: 2014-03-16 23:04:36 EDT
Description of problem:
One of the concerns raised in the discussion of moving the mtab lock file from
/etc to /var/lock was how to deal with systems with a separate /var and/or
/var/lock. It is unlikely, but possible that a lock could disappear. ie,
a lock is created in /var/lock in the root filesystem. We then mount a separate
/var filesystem which causes the lock in /var/lock to silently disappear.
This patch arranges for /var and /var/lock to be mounted immediately after
filesystems are checked to help ensure that locks don't disappear. Whee, fun.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Created attachment 143435 [details]
Created attachment 143436 [details]
The right one (without unrelated changes)
Is this still necessary? Are we actually moving the mtab locK?
I don't think this is still necessary as I don't think we're going to try and
get mtab out of /etc (at least in the near future). There's simply too much
intertia (or lack thereof) amongst the various mount-tools maintainers to make
Instead we'll be using a union-fs solution on top of /etc. That will require a
different set of changes to initscripts, for which I'll open a separate bug.