2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-28 21:32:22 +00:00

Preseed an empty domain when dns.domain is unset

Without dns.domain the d-i startup set no netcfg/get_domain, so a static
network install stopped at the interactive domain name prompt. A cleared
dns.domain reaches deploycfg as '' rather than null and was preseeded
literally, giving c1.'' as the host name and search ''.
This commit is contained in:
Markus Hilger
2026-11-20 13:37:08 +01:00
parent 42a4291cb4
commit c4eb02e0e7
2 changed files with 6 additions and 2 deletions
@@ -158,8 +158,10 @@ for ntpsrv in "$ntpsrvs"; do
done
setdebopt debian-installer/locale $(grep ^locale: /etc/confluent/deploycfg|cut -d ' ' -f 2) select
domainname=$(grep ^dnsdomain: /etc/confluent/deploycfg|cut -d ' ' -f 2)
if [ ! -z "$domainname" ] && [ "$domainname" != "null" ]; then
if [ ! -z "$domainname" ] && [ "$domainname" != "null" ] && [ "$domainname" != "''" ]; then
setdebopt netcfg/get_domain $domainname string
else
setdebopt netcfg/get_domain "" string
fi
@@ -150,8 +150,10 @@ for ntpsrv in "$ntpsrvs"; do
done
setdebopt debian-installer/locale $(grep ^locale: /etc/confluent/deploycfg|cut -d ' ' -f 2) select
domainname=$(grep ^dnsdomain: /etc/confluent/deploycfg|cut -d ' ' -f 2)
if [ ! -z "$domainname" ] && [ "$domainname" != "null" ]; then
if [ ! -z "$domainname" ] && [ "$domainname" != "null" ] && [ "$domainname" != "''" ]; then
setdebopt netcfg/get_domain $domainname string
else
setdebopt netcfg/get_domain "" string
fi