From fa95ba5e60a74652b98dac238b381703d1ed2389 Mon Sep 17 00:00:00 2001 From: Alexander Gabriel Date: Thu, 21 Jul 2022 23:10:50 +0200 Subject: [PATCH] support dns_domain --- templates/preseed.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/preseed.cfg.j2 b/templates/preseed.cfg.j2 index 77044f7..9455b25 100644 --- a/templates/preseed.cfg.j2 +++ b/templates/preseed.cfg.j2 @@ -68,7 +68,7 @@ d-i netcfg/choose_interface select auto # 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 {{ inventory_hostname }} -d-i netcfg/get_domain string unassigned-domain +d-i netcfg/get_domain string {{ dns_domain | default('unassigned-domain') }} # 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