From 7b4536c710adea88f160c6f9ae140ae5279c8183 Mon Sep 17 00:00:00 2001 From: Gordan Bobic Date: Mon, 23 Mar 2015 16:17:56 +0000 Subject: [PATCH] Execute udevadm settle before trying to import pools Execute udevadm settle before trying to import pools. Otherwise the disk device nodes may not be ready before import time. This is analogous to the behavior of the init scripts and systemd units. Signed-off-by: Gordan Bobic Signed-off-by: Pavel Snajdr Signed-off-by: Brian Behlendorf Closes #3213 --- dracut/90zfs/mount-zfs.sh.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dracut/90zfs/mount-zfs.sh.in b/dracut/90zfs/mount-zfs.sh.in index ffc3f2013..8237d76f2 100755 --- a/dracut/90zfs/mount-zfs.sh.in +++ b/dracut/90zfs/mount-zfs.sh.in @@ -12,6 +12,9 @@ if getargbool 0 zfs_force -y zfs.force -y zfsforce ; then ZPOOL_FORCE="-f" fi +# Delay until all required block devices are present. +udevadm settle + case "$root" in zfs:*) # We have ZFS modules loaded, so we're able to import pools now.