manually trigger udev

This commit is contained in:
Gennady Lipenkov 2020-11-26 17:29:33 +03:00
parent ef67fb1cc8
commit 4c3e310f57
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ DISK_LINK="/dev/disk/by-id/virtio-doexport"
echo "Waiting for disk..."
for attempt in 1 2 3; do
sleep 3
/sbin/udevadm trigger
if [ -L "${DISK_LINK}" ]; then
break
fi