Michael Tokarev: use wait_for_udev in initramfs script

Michael Tokarev mjt at alioth.debian.org
Sat Aug 10 07:32:25 UTC 2013


Module: mdadm
Branch: master
Commit: 1e72652831422fd907e5754ab6cecc3e732e4764
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=1e72652831422fd907e5754ab6cecc3e732e4764

Author: Michael Tokarev <mjt at tls.msk.ru>
Date:   Tue Mar  5 13:35:53 2013 +0400

use wait_for_udev in initramfs script

---

 debian/changelog                  |   13 +++++++++++++
 debian/initramfs/script.local-top |    6 +-----
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f16a975..4d5a5ac 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,16 @@
+mdadm (3.2.5-6) unstable; urgency=low
+
+  * replace home-grown and not-working-since-etch udevsettle call
+    in initramfs script with proper wait_for_udev function (from
+    common initramfs functions).  This unbreaks situations when
+    the underlying device needs some udev magic to happen before
+    being available, which includes stacked devices (md on lvm)
+    and other cases.  Thanks to Thomas Parmelan and Dave Whitla
+    for finding the root cause of breakage and for providing
+    the fix.  (Closes: #644876)
+
+ -- Michael Tokarev <mjt at tls.msk.ru>  Tue, 05 Mar 2013 13:32:21 +0400
+
 mdadm (3.2.5-5) unstable; urgency=low
 
   * add (empty) restart and force-reload actions to mdadm-waitidle
diff --git a/debian/initramfs/script.local-top b/debian/initramfs/script.local-top
index 82388d3..166f256 100644
--- a/debian/initramfs/script.local-top
+++ b/debian/initramfs/script.local-top
@@ -97,11 +97,7 @@ else
   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
 




More information about the pkg-mdadm-commits mailing list