From 1ef80f5f19cd6c4c756f0cea4535b72da60da650 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Fri, 30 Oct 2026 22:53:06 +0100 Subject: [PATCH] Skip bringing up the deploy nic without a discovered ifidx With confluent= on the kernel command line, e.g. behind a DHCP relay, apiclient writes no /tmp/confluent.ifidx and cat and nmcli printed errors. --- confluent_osdeploy/el8/profiles/default/scripts/pre.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh index ed656805..b2c15c7f 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh @@ -28,8 +28,11 @@ chmod 600 /tmp/confluent-pre.log tail -f /tmp/confluent-pre.log > /dev/tty & logshowpid=$! confluentpython /etc/confluent/apiclient >& /dev/null -nicname=$(ip link|grep ^$(cat /tmp/confluent.ifidx): | awk '{print $2}' | awk -F: '{print $1}') -nmcli c u $nicname +# no ifidx unless the manager was found via IPv6 link-local +nicname=$(ip link|grep ^$(cat /tmp/confluent.ifidx 2>/dev/null): | awk '{print $2}' | awk -F: '{print $1}') +if [ -n "$nicname" ]; then + nmcli c u $nicname +fi while ip -6 addr | grep tentative > /dev/null; do sleep 0.5 done