From 7f1ac92fc94fc504b8adc250d68257e0975d8db4 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 1 Feb 2023 16:51:21 -0500 Subject: [PATCH] Store mgr from confluent= specificate --- .../usr/lib/dracut/hooks/pre-trigger/01-confluent.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-trigger/01-confluent.sh b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-trigger/01-confluent.sh index 7bd4066f..73e572a1 100644 --- a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-trigger/01-confluent.sh +++ b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-trigger/01-confluent.sh @@ -100,7 +100,9 @@ cd /sys/class/net if ! grep MANAGER: /etc/confluent/confluent.info; then confluentsrv=$(getarg confluent) if [ ! -z "$confluentsrv" ]; then + mgr=$confluentsrv if [[ "$confluentsrv" = *":"* ]]; then + mgr="[$mgr]" confluenthttpsrv=[$confluentsrv] /usr/libexec/nm-initrd-generator ip=:dhcp6 else @@ -146,7 +148,7 @@ fi while ! confluentpython /opt/confluent/bin/apiclient $errout /confluent-api/self/deploycfg2 > /etc/confluent/confluent.deploycfg; do sleep 10 done -ifidx=$(cat /tmp/confluent.ifidx) +ifidx=$(cat /tmp/confluent.ifidx 2> /dev/null) if [ ! -z "$ifidx" ]; then ifname=$(ip link |grep ^$ifidx:|awk '{print $2}') ifname=${ifname%:}