2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-01-12 11:02:30 +00:00

Add wait for disk bringup to allow media based co-opt of genesis

This commit is contained in:
Jarrod Johnson
2025-03-12 13:23:00 -04:00
parent 9123d2f2e0
commit 58608016c4

View File

@@ -55,6 +55,13 @@ mkdir -p /etc/pki/tls/certs
cat /tls/*.pem > /etc/pki/tls/certs/ca-bundle.crt
TRIES=0
touch /etc/confluent/confluent.info
TRIES=5
echo -n "Waitiing for disks..."
while [ ! -e /dev/disk/by-label ] && [ $TRIES -gt 0 ]; do
sleep 1
TRIES=$((TRIES - 1))
done
echo "Done"
if [ -e /dev/disk/by-label/CNFLNT_IDNT ]; then
mkdir -p /media/ident
mount /dev/disk/by-label/CNFLNT_IDNT /media/ident