From c4379e3fd2d94e89d6b327d68ea878018e8e611f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson <jjohnson2@lenovo.com> Date: Wed, 20 May 2020 09:40:16 -0400 Subject: [PATCH] Null domain becomes blank for ubuntu --- .../initramfs/custom-installation/hooks/casper-bottom.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh b/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh index 8ee4c1bb..a33ed08f 100755 --- a/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh +++ b/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh @@ -33,6 +33,7 @@ elif [ "$ipv4m" = "static" ]; then v4nm=${v4nm#ipv4_netmask: } dnsdomain=$(grep ^dnsdomain: $deploycfg) dnsdomain=${dnsdomain#dnsdomain: } + if [ "$dnsdomain" = "null" ]; then dnsdomain=""; fi dns=$(grep -A1 ^nameservers: $deploycfg|head -n 2|tail -n 1|sed -e 's/^- //'|sed -e "s/''//") { echo "DEVICE='$DEVICE'"