From f3c00a59e2496aff2894f55f3f70c6a61da66880 Mon Sep 17 00:00:00 2001 From: Alexander Gabriel Date: Sat, 19 Jun 2021 21:55:36 +0100 Subject: [PATCH] change hostname by parameter/variable dynamic --- 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 680fa76..bf2f480 100644 --- a/templates/preseed.cfg.j2 +++ b/templates/preseed.cfg.j2 @@ -71,7 +71,7 @@ d-i netcfg/get_domain string 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 # and adjust the following line. -d-i netcfg/hostname string {{ debianunattended_hostname }} +d-i netcfg/hostname string "{{ debianunattended_hostname | default('debianunattended') }}" # Disable that annoying WEP key dialog. d-i netcfg/wireless_wep string