2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-11 10:18:00 +00:00

Change el8 addons to retry confluent handler

If DD is in play, drivers may appear later, and
we have to wait for them in a future invocation.
This commit is contained in:
Jarrod Johnson 2020-07-14 16:43:37 -04:00
parent dad68bdf63
commit fba82f9379

View File

@ -1,6 +1,5 @@
#!/bin/sh
[ -e /tmp/confluent.initq ] && return 0
echo -n "" > /tmp/confluent.initq
TRIES=0
oum=$(umask)
umask 0077
@ -16,6 +15,8 @@ while ! grep ^EXTMGRINFO: /etc/confluent/confluent.info | awk -F'|' '{print $3}'
/opt/confluent/bin/copernicus -t > /etc/confluent/confluent.info
done
cd /
grep ^EXTMGRINFO: /etc/confluent/confluent.info || return 0
echo -n "" > /tmp/confluent.initq
nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')
#TODO: blkid --label <whatever> to find mounted api