mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-24 18:39:34 +03:00
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 <gordan@steel.shatteredsilicon.net> Signed-off-by: Pavel Snajdr <snajpa@snajpa.net> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #3213
This commit is contained in:
parent
e89bd69775
commit
7b4536c710
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user