2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-08-28 13:58:16 +00:00

Add a secondary copernicus loop to diskless

Sometimes 30 seconds just isn't enough.
This commit is contained in:
Jarrod Johnson
2025-06-11 16:19:13 -04:00
parent 5a96c7a20c
commit dcd59667e4

View File

@@ -102,6 +102,14 @@ while ! grep ^EXTMGRINFO: /etc/confluent/confluent.info | awk -F'|' '{print $3}'
ip link set $i up
done
/opt/confluent/bin/copernicus -t > /etc/confluent/confluent.info
echo -n .
done
TRIES=0
while ! grep ^NODENAME: /etc/confluent/confluent.info >& /dev/null && [ "$TRIES" -lt 300 ]; do
sleep 0.5
echo -n .
/opt/confluent/bin/copernicus -t > /etc/confluent/confluent.info
TRIES=$((TRIES + 1))
done
cd /
nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')