mountall: use udevadm settle to wait for newly opened cryptodisks to appear in /dev/mapper

This commit is contained in:
Gerd v. Egidy 2022-09-06 20:19:53 +02:00
parent 495fea0194
commit d8de1c8199

View file

@ -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