[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#644876: initramfs-tools: Boot failure from software RAID1 + LVM2 by timing of mdadm + lvm initiation



reassign 644876 mdadm
tags 644876 + patch
thanks

Le mercredi 14 mars 2012 à 01:29, d'après
Dave Whitla <Dave.Whitla@wotifgroup.com> :

> The condition will never be true because udevsettle was a symlink to /sbin/udevadm which has been absent from Debian since Lenny.
> 
> Try editing this file to replace the above with:
> 
> if [ -x "$(command -v udevadm)" ]; then
>   verbose && log_begin_msg "Waiting for udev to process events"
>   udevadm settle --timeout=10
>   verbose && log_end_msg
> fi

Good catch!

And even better, there is a function to do that (defined in
scripts/functions and already used by scripts/nfs and scripts/local).

Also, this script is shipped by the mdadm package.

--- /usr/share/initramfs-tools/scripts/local-top/mdadm.orig	2013-01-24 14:09:11.000000000 +0100
+++ /usr/share/initramfs-tools/scripts/local-top/mdadm	2013-03-02 18:03:59.000000000 +0100
@@ -97,11 +97,7 @@
   done
 fi
 
-if [ -x "$(command -v udevsettle)" ]; then
-  verbose && log_begin_msg "Waiting for udev to process events"
-  udevsettle 10
-  verbose && log_end_msg
-fi
+wait_for_udev 10
 
 maybe_break post-mdadm
 
-- 
Thomas Parmelan


Reply to: