lvm2 root partition should wait for udev to settle before giving up
Bug #445408 reported by
Gabriel de Perthuis
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
lvm2 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: initramfs-tools
I have a root partition layered over lvm, raid, and the sata_via kernel module.
It doesn't appear immediately, and local-top/lvm2 fails to find it.
Once initramfs bails to a shell, lvm vgscan && lvm vgchange -ay are enough to make the partition available.
A mountroot fail hook (add_mountroot_
To post a comment you must log in.
This patch solves the problem using the add_mountroot_ fail_hook approach.
It's rather safe and no worse than the current situation, but calling the various fail hooks is slow, because some of them are sleeping.
Calling udevadm settle, or (in the future), spawning a process and making things event-driven à la dracut, would work better.