From 32ba37a8582afc16b525dc5c99bc29875ed72dde Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 30 Jun 2020 19:30:09 -0400 Subject: [PATCH] Extract default nic to the index in el8 --- .../usr/lib/dracut/hooks/initqueue/01-confluent.sh | 9 +++++++-- 1 file changed, 7 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 85496b9e..e7ad0390 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 @@ -2,7 +2,7 @@ [ -e /tmp/confluent.initq ] && return 0 echo -n "" > /tmp/confluent.initq TRIES=0 -while ! awk -F'|' '{print $3}' /tmp/confluent.info |grep 1 >& /dev/null && [ "$TRIES" -lt 60 ]; do +while ! grep ^EXTMGRINFO: /tmp/confluent.info | awk -F'|' '{print $3}' | grep 1 >& /dev/null && [ "$TRIES" -lt 60 ]; do TRIES=$((TRIES + 1)) cd /sys/class/net for currif in *; do @@ -11,13 +11,18 @@ while ! awk -F'|' '{print $3}' /tmp/confluent.info |grep 1 >& /dev/null && [ "$T cd / /opt/confluent/bin/copernicus -t > /tmp/confluent.info done + +read ifidx < /tmp/net.ifaces