Make domain configurable with default and interactive prompt

- Replace hardcoded domain in template.cfg with DOMAIN_NAME placeholder
- Add DEFAULT_DOMAIN constant and prompt in unattended.sh
- Support DOMAIN_NAME env var with fallback to default/interactive input
- Apply DOMAIN_NAME substitution to preseed.cfg
This commit is contained in:
2026-08-20 10:16:02 +02:00
parent 7ddaa79589
commit f8cbeaf20e
2 changed files with 14 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ d-i netcfg/dhcpv6_timeout string 1
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname string debian
d-i netcfg/get_domain string home.bjphoster.cloud
d-i netcfg/get_domain string DOMAIN_NAME
# If you want to force a hostname, regardless of what either the DHCP
# server returns or what the reverse DNS entry for the IP is, uncomment