Support subdirectories in ipxe paths

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
This commit is contained in:
Jonathon Anderson
2023-04-14 20:14:03 -06:00
parent e2e3a90623
commit 4622153a82
4 changed files with 4 additions and 3 deletions

View File

@@ -371,6 +371,7 @@ func RenderTemplateFile(fileName string, data TemplateStruct) (
"Include": templateFileInclude,
"IncludeFrom": templateContainerFileInclude,
"IncludeBlock": templateFileBlock,
"basename": path.Base,
"inc": func(i int) int { return i + 1 },
"dec": func(i int) int { return i - 1 },
"file": func(str string) string { return fmt.Sprintf("{{ /* file \"%s\" */ }}", str) },