added shim/grub find to provision process

Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
Christian Goll
2023-07-05 15:43:31 +02:00
committed by Jonathon Anderson
parent 4cacd0ef75
commit a36cb23319
8 changed files with 161 additions and 2 deletions

View File

@@ -20,11 +20,15 @@ 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 .BoothMethpd == "ipxe" }}
{{range $type,$name := $.Tftp.IpxeBinaries }}
if option architecture-type = {{ $type }} {
filename "/warewulf/{{ basename $name }}";
}
{{ end }}
{{- end }}{{/* range IpxeBinaries */}}
{{ else }}
filename {{ .DefaultShim }}
{{- end }}{{/* BootMethod */}}
}
{{if eq .Dhcp.Template "static" -}}