diff options
author | Gordan Bobic <[email protected]> | 2015-03-23 16:17:56 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-03-24 13:38:55 -0700 |
commit | 7b4536c710adea88f160c6f9ae140ae5279c8183 (patch) | |
tree | d86bb825494dd6be05cb561d7a4230d88646c2ff /dracut | |
parent | e89bd69775d5379f6835dade1e14005aa17f4903 (diff) |
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 <[email protected]>
Signed-off-by: Pavel Snajdr <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #3213
Diffstat (limited to 'dracut')
-rwxr-xr-x | dracut/90zfs/mount-zfs.sh.in | 3 |
1 files changed, 3 insertions, 0 deletions
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. |