Reorder dnsmasq config template to put iPXE last.

Signed-off-by: snehring <snehring@iastate.edu>
This commit is contained in:
snehring
2024-04-24 10:20:14 -05:00
parent 25c0eca21a
commit 6e6344830d
2 changed files with 3 additions and 2 deletions

View File

@@ -33,3 +33,4 @@
* Dietmar Rieder <dietmar.rieder@i-med.ac.at> * Dietmar Rieder <dietmar.rieder@i-med.ac.at>
* Andreas Henkel <henkel@uni-mainz.de> * Andreas Henkel <henkel@uni-mainz.de>
* Timothy Middelkoop <tmiddelkoop@internet2.edu> * Timothy Middelkoop <tmiddelkoop@internet2.edu>
* Shane Nehring <snehring@iastate.edu>

View File

@@ -15,8 +15,6 @@ dhcp-vendorclass=set:efi-http,HTTPClient:Arch:00016
dhcp-option-force=tag:efi-http,60,HTTPClient dhcp-option-force=tag:efi-http,60,HTTPClient
# for http boot always use shim/grub # for http boot always use shim/grub
dhcp-boot=tag:efi-http,"http://{{$.Ipaddr}}:{{$.Warewulf.Port}}/efiboot/shim.efi" dhcp-boot=tag:efi-http,"http://{{$.Ipaddr}}:{{$.Warewulf.Port}}/efiboot/shim.efi"
# iPXE binary will get the following configuration file
dhcp-boot=tag:iPXE,"http://{{$.Ipaddr}}:{{$.Warewulf.Port}}/ipxe/${mac:hexhyp}"
{{- if $.Warewulf.GrubBoot }} {{- if $.Warewulf.GrubBoot }}
dhcp-boot=tag:x86PC,"warewulf/shim.efi" dhcp-boot=tag:x86PC,"warewulf/shim.efi"
{{- else }} {{- else }}
@@ -27,6 +25,8 @@ dhcp-boot=tag:x86PC,"/warewulf/{{ index $.Tftp.IpxeBinaries "00:07" }}"
dhcp-boot=tag:aarch64,"/warewulf/{{ index $.Tftp.IpxeBinaries "00:0B" }}" dhcp-boot=tag:aarch64,"/warewulf/{{ index $.Tftp.IpxeBinaries "00:0B" }}"
{{- end }} {{- end }}
{{- end }} {{- end }}
# iPXE binary will get the following configuration file
dhcp-boot=tag:iPXE,"http://{{$.Ipaddr}}:{{$.Warewulf.Port}}/ipxe/${mac:hexhyp}"
dhcp-no-override dhcp-no-override
{{- if $.Tftp.Enabled }} {{- if $.Tftp.Enabled }}
# also act as tftp server # also act as tftp server