mount script doesn't poll if root device has been initialized, preventing udev+mdadm/lvm/cryptsetup to do its job
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools |
Fix Released
|
Undecided
|
Unassigned | ||
initramfs-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
script '/usr/share/
The script that mounts the root fs should enter a loop checking if all the root device has come up, and if that has not happened for a while start an md device in degraded mode.
Something like
If rootfs depends on a md device,
while timeout not reached, do:
if root md device has come up, continue booting
wait 0.5 seconds
done.
if timeout has been reached:
mdadm --run <root md device>
The udev lvm/crypt/ hotplug then goes on, so...
if rootfs then depends on a lvm device
while timeout not reached ....
The scripts in initramfs that should attach the root volume do not find any device as the kernel has not yet finished probing. Adding a little sleep helps, but it's not a solution.