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:
@@ -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
|
||||
|
||||
|
||||
|
||||
+3
-1
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user