Merge pull request #651 from mslacken/MakeIpxeConfig

make ipxe binary source configurable
This commit is contained in:
Christian Goll
2023-02-24 15:12:26 +01:00
committed by GitHub
6 changed files with 30 additions and 19 deletions

View File

@@ -20,15 +20,11 @@ option architecture-type code 93 = unsigned integer 16;
if exists user-class and option user-class = "iPXE" {
filename "http://{{$.Ipaddr}}:{{$.Warewulf.Port}}/ipxe/${mac:hexhyp}";
} else {
if option architecture-type = 00:0B {
filename "/warewulf/arm64.efi";
} elsif option architecture-type = 00:09 {
filename "/warewulf/x86_64.efi";
} elsif option architecture-type = 00:07 {
filename "/warewulf/x86_64.efi";
} elsif option architecture-type = 00:00 {
filename "/warewulf/x86_64.kpxe";
}
{{range $type,$name := $.Tftp.IpxeBinaries }}
if option architecture-type = {{ $type }} {
filename "/warewulf/{{ $name }}";
}
{{ end }}
}
{{if eq .Dhcp.Template "static" -}}