From 27a2a58ea1cee04a97cecd0fec1976f8348ad29b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 30 Jun 2020 18:39:29 -0400 Subject: [PATCH] Try more aggressively to get to 'default' network. If a 'default' network is going to eventually link up, wait for it. --- .../usr/lib/dracut/hooks/initqueue/01-confluent.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh index eb958ac2..ec15028e 100644 --- a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh +++ b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh @@ -1,12 +1,14 @@ #!/bin/sh [ -e /tmp/confluent.initq ] && return 0 echo -n "" > /tmp/confluent.initq -while ! grep MANAGER /tmp/confluent.info >& /dev/null; do +TRIES=0 +while ! awk -F'|' '{print $3}' /tmp/confluent.info |grep 2 >& /dev/null && [ "$TRIES" -lt 60 ]; do + TRIES=$((TRIES + 1)) cd /sys/class/net for currif in *; do ip link set $currif up done - cd - + cd / /opt/confluent/bin/copernicus -t > /tmp/confluent.info done read ifidx <