make ipxe binary source configureable
This commit is contained in:
@@ -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" -}}
|
||||
|
||||
Reference in New Issue
Block a user