[Bug 244926] Re: vol_id doesn't guarantee that mdadm/lvm/etc. have actually finished with the device, so only mitigates and does not solve mountroot race

Scott James Remnant scott at canonical.com
Tue Aug 5 14:34:51 UTC 2008


Pasted relevant bit of the diff above, it's actually one of those new LP
package version-to-version diffs, though it appears to have picked a
larger diff than it needed to.

Fundamentally we call udevadm settle after vol_id to guarantee that udev
has actually finished with the block device.  This means we check:

  1) the device exists, ie. udev has created it
  2) vol_id returns valid data for the filesystem, ie. any lvm or mdadm has been activated
  3) udev has settled, ie. any binaries run by udev have exited and there are no locks

-- 
vol_id doesn't guarantee that mdadm/lvm/etc. have actually finished with the device, so only mitigates and does not solve mountroot race
https://bugs.launchpad.net/bugs/244926
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to initramfs-tools in ubuntu.




More information about the kernel-bugs mailing list