From b796d19a4c6a603fbe29c340abe5a681fd42700d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 5 Aug 2020 09:21:16 -0400 Subject: [PATCH] Add ifidx to bash path The shell based apiclient alternative should write ifidx as well. --- .../initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_osdeploy/rhvh4/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh b/confluent_osdeploy/rhvh4/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh index 0d3dc85b..cf9e7ca2 100644 --- a/confluent_osdeploy/rhvh4/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh +++ b/confluent_osdeploy/rhvh4/initramfs/usr/lib/dracut/hooks/initqueue/01-confluent.sh @@ -41,6 +41,9 @@ else if [ ! -f /etc/confluent/confluent.apikey ]; then /opt/confluent/bin/clortho $nodename $mgr > /etc/confluent/confluent.apikey fi + if echo $mgr | grep '%' > /dev/null; then + echo $mgr | awk -F% '{print $2}' > /tmp/confluent.ifidx + fi apikey=$(cat /etc/confluent/confluent.apikey) if echo $mgr | grep ':' > /dev/null; then mgr="[$mgr]"