From 61f704692caca4fe170e8509f0ecb4b9935bfedb Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 27 Oct 2013 13:22:12 +0100 Subject: [PATCH] 00-fsdev.sh: sleep on multipath -v only if using mdev --- defaults/initrd.d/00-fsdev.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/defaults/initrd.d/00-fsdev.sh b/defaults/initrd.d/00-fsdev.sh index cb1fa56..4f7f85e 100755 --- a/defaults/initrd.d/00-fsdev.sh +++ b/defaults/initrd.d/00-fsdev.sh @@ -198,8 +198,10 @@ start_volumes() { if [ "${USE_MULTIPATH_NORMAL}" = "1" ]; then good_msg "Scanning for multipath devices" multipath -v 0 - # TODO(lxnay): horrible sleep! - sleep 2 + + is_udev && udevadm settle + is_mdev && sleep 2 + good_msg "Activating multipath devices" dmsetup ls --target multipath --exec "/sbin/kpartx -a -v" fi