mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-04-21 06:03:41 +00:00
mountall: use udevadm settle to wait for newly opened cryptodisks to appear in /dev/mapper
This commit is contained in:
parent
495fea0194
commit
d8de1c8199
1 changed files with 4 additions and 0 deletions
|
|
@ -311,6 +311,10 @@ for BLKDEV in $(ls -1 "/sys/class/block"); do
|
|||
fi
|
||||
done
|
||||
|
||||
# if we just opened a cryptodev we have to wait until it appears in /dev/mapper
|
||||
[[ $VERBOSE -eq 1 ]] && echo "waiting until recently opened lvm devices appear in /dev/mapper"
|
||||
udevadm settle --timeout=10
|
||||
|
||||
# loop through device mapper / lvm volumes
|
||||
for LVMDEV in $(ls -1 "/dev/mapper"); do
|
||||
# there is always one central control entry, skip it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue