From 6862d9e58057178a8651818259f7e3ec0d18b6e4 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 23 Jun 2021 12:26:49 -0400 Subject: [PATCH] Correct formatting of nameserver list in suse --- .../suse15-diskless/profiles/default/scripts/imageboot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_osdeploy/suse15-diskless/profiles/default/scripts/imageboot.sh b/confluent_osdeploy/suse15-diskless/profiles/default/scripts/imageboot.sh index d7e6d35a..ebcff0b4 100644 --- a/confluent_osdeploy/suse15-diskless/profiles/default/scripts/imageboot.sh +++ b/confluent_osdeploy/suse15-diskless/profiles/default/scripts/imageboot.sh @@ -85,7 +85,7 @@ nameservers="" while read -r entry; do if [ $nameserversec = 1 ]; then if [[ $entry == "-"* ]]; then - nameservers="$nameservers"${entry#- }";" + nameservers="$nameservers"${entry#- }" " continue fi fi @@ -95,6 +95,7 @@ while read -r entry; do continue fi done < /etc/confluent/confluent.deploycfg +nameserverrs=${nameservers% } sed -i 's/^NETCONFIG_DNS_STATIC_SERVERS="/NETCONFIG_DNS_STATIC_SERVERS="'$nameservers/ /sysroot/etc/sysconfig/network/config dnsdomain=$(grep ^dnsdomain: /etc/confluent/confluent.deploycfg) dnsdomain=${dnsdomain#dnsdomain: }