feat: added network preseed template and vars file

This commit is contained in:
AJ Schroeder
2024-06-29 10:38:30 -05:00
parent 241822c93d
commit 41c45ef133
2 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
d-i netcfg/choose_interface select ${device}
%{ if ip != null ~}
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/get_ipaddress string ${ip}
d-i netcfg/get_netmask string ${cidrnetmask("${ip}/${netmask}")}
d-i netcfg/get_gateway string ${gateway}
d-i netcfg/get_nameservers string ${join(" ", dns)}
d-i netcfg/confirm_static boolean true
%{ endif ~}