Comment 0 for bug 244926

Revision history for this message
Etienne Goyer (etienne-goyer-outlands) wrote :

Under certain circumstances, boot may fail and stop at an initramfs shell prompt with an error such as:

     mount: Mounting /dev/md0 on /root failed: device or ressource busy

This could happen, for example, when the root file system is on a software RAID 1 volume. The problem could be resolved by adding a "sleep 10" or "udevadm settle" in /usr/share/initramfs-tools/init, before the function mountroot is being called.

Discussing the problem with Scott, it appear that the race condition could be better avoided by letting udev settle after each call to vol_id in /usr/share/initramfs-tools/scripts/local instead. A package in his PPA implement such a change: https://launchpad.net/~scott/+archive.