From d86fc664e95c17fa978e5e4dd84ce65ec13dde35 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 23 Jun 2021 12:35:54 -0400 Subject: [PATCH] Handle space delimiting in nameservers If multiple dns servers, then need to quote to preserve the list. --- .../suse15-diskless/profiles/default/scripts/imageboot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_osdeploy/suse15-diskless/profiles/default/scripts/imageboot.sh b/confluent_osdeploy/suse15-diskless/profiles/default/scripts/imageboot.sh index ebcff0b4..aa9212a3 100644 --- a/confluent_osdeploy/suse15-diskless/profiles/default/scripts/imageboot.sh +++ b/confluent_osdeploy/suse15-diskless/profiles/default/scripts/imageboot.sh @@ -95,8 +95,8 @@ 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 +nameservers=${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: } sed -i 's/^NETCONFIG_DNS_STATIC_SEARCHLIST="/NETCONFIG_DNS_STATIC_SEARCHLIST="'$dnsdomain/ /sysroot/etc/sysconfig/network/config