From 3b121cdb4bbf6549c8624a84ed142a90680a3be2 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 15 Jul 2020 08:45:41 -0400 Subject: [PATCH] Have initqueue hook give up faster Since the hook itself will get retried, we can be more aggressive in giving up in each individual attempt. --- .../initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 534b7fd5..a70beb92 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 @@ -7,7 +7,7 @@ mkdir -p /etc/confluent echo -n > /etc/confluent/confluent.info umask $oum cd /sys/class/net -while ! grep ^EXTMGRINFO: /etc/confluent/confluent.info | awk -F'|' '{print $3}' | grep 1 >& /dev/null && [ "$TRIES" -lt 60 ]; do +while ! grep ^EXTMGRINFO: /etc/confluent/confluent.info | awk -F'|' '{print $3}' | grep 1 >& /dev/null && [ "$TRIES" -lt 5 ]; do TRIES=$((TRIES + 1)) for currif in *; do ip link set $currif up