From 63bb5f4d1b3d225d9e606872133b378ecc292ff1 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 6 Aug 2025 14:15:43 -0400 Subject: [PATCH] Have routed diskless retry checking for interface If the network interface is slow to link up, wait until something comes up, ignoring infiniband for now. --- .../usr/lib/dracut/hooks/cmdline/10-confluentdiskless.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/confluent_osdeploy/el8-diskless/initramfs/usr/lib/dracut/hooks/cmdline/10-confluentdiskless.sh b/confluent_osdeploy/el8-diskless/initramfs/usr/lib/dracut/hooks/cmdline/10-confluentdiskless.sh index cdcc12fd..cb7b7372 100644 --- a/confluent_osdeploy/el8-diskless/initramfs/usr/lib/dracut/hooks/cmdline/10-confluentdiskless.sh +++ b/confluent_osdeploy/el8-diskless/initramfs/usr/lib/dracut/hooks/cmdline/10-confluentdiskless.sh @@ -107,7 +107,11 @@ if [ ! -z "$confluentsrv" ]; then /usr/libexec/nm-initrd-generator ip=:dhcp6 else confluenthttpsrv=$confluentsrv - ifname=$(ip -br link|grep LOWER_UP|grep -v UNKNOWN|head -n 1|awk '{print $1}') + ifname="" + while [ -z "$ifname" ]; do + ifname=$(ip -br link|grep LOWER_UP|grep -v ib|grep -v UNKNOWN|head -n 1|awk '{print $1}') + sleep 0.5 + done echo -n "Attempting to use dhcp to bring up $ifname..." dhclient $ifname while ! ip -br addr show dev $ifname | grep \\. > /dev/null; do