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'"