mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 18:19:36 +00:00
Merge pull request #675 from redbaron/multiple-initrd
fix loading multiple initrds
This commit is contained in:
@@ -15,7 +15,9 @@ chain ipxe?uuid=${uuid}&mac=${mac:hexhyp}&domain=${domain}&hostname=${hostname}&
|
||||
|
||||
var ipxeTemplate = template.Must(template.New("iPXE config").Parse(`#!ipxe
|
||||
kernel {{.Kernel}}{{range $arg := .Args}} {{$arg}}{{end}}
|
||||
initrd {{ range $element := .Initrd }}{{$element}} {{end}}
|
||||
{{- range $element := .Initrd }}
|
||||
initrd {{$element}}
|
||||
{{- end}}
|
||||
boot
|
||||
`))
|
||||
|
||||
|
||||
@@ -34,7 +34,8 @@ func TestIPXEHandler(t *testing.T) {
|
||||
// - the Profile's NetBoot config is rendered as an iPXE script
|
||||
expectedScript := `#!ipxe
|
||||
kernel /image/kernel a=b c
|
||||
initrd /image/initrd_a /image/initrd_b
|
||||
initrd /image/initrd_a
|
||||
initrd /image/initrd_b
|
||||
boot
|
||||
`
|
||||
assert.Equal(t, http.StatusOK, w.Code)
|
||||
|
||||
Reference in New Issue
Block a user