2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-07 06:22:25 +00:00

Specifically wait for /dev/disk/by-label

When udev is populating the disk hierarchy, it can be a long time
before the 'by-label' is specifically ready.

Wait for that specific entry to come along before continuing to
check if there's an identity image.
This commit is contained in:
Jarrod Johnson 2023-07-07 15:32:47 -04:00
parent a875f0d3e1
commit 809099c8f8

View File

@ -41,7 +41,7 @@ mkdir -p /etc/confluent
echo -n > /etc/confluent/confluent.info
umask $oum
TRIES=5
while [ ! -e /dev/disk ] && [ $TRIES -gt 0 ]; do
while [ ! -e /dev/disk/by-label ] && [ $TRIES -gt 0 ]; do
sleep 2
TRIES=$((TRIES - 1))
done