This patch blocks initramfs startup until udev events are handled to hopefully fix two issues: - switch from initramfs to real root may fail sporadically when udev is not ready (see VD13 bug #14 and https://bugs.launchpad.net/ubuntu/+source/linux/+bug/613273) - RAID setup may fail later if it's interrupted once during initramfs startup (see SFI bug #303 and https://bugs.launchpad.net/ubuntu/+source/udev/+bug/610107) --- /usr/share/initramfs-tools/scripts/init-bottom/udev 2010-10-29 23:42:13.000000000 +0200 +++ /usr/share/initramfs-tools/scripts/init-bottom/udev 2011-09-23 09:45:22.248666993 +0200 @@ -16,8 +16,11 @@ ;; esac +echo "calling udevadm settle" +/sbin/udevadm settle # Stop udevd, we'll miss a few events while we run init, but we catch up +echo "calling pkill for udevd" pkill udevd # Move /dev to the real filesystem