Added CPU architecture detection

Some commands were added in the ipxeBootstrap to enable architecture detection based on the architecture the iPXE version used was built for.
This is done through the use of an additional flag in the chain which is the ipxeBootstrap using the buildarch parameter.
This commit is contained in:
Hugo Florenty
2023-03-28 13:32:37 +01:00
committed by Dalton Hubble
parent 32ddba55c1
commit 1484cf7354

View File

@@ -10,7 +10,7 @@ import (
)
const ipxeBootstrap = `#!ipxe
chain ipxe?uuid=${uuid}&mac=${mac:hexhyp}&domain=${domain}&hostname=${hostname}&serial=${serial}
chain ipxe?uuid=${uuid}&mac=${mac:hexhyp}&domain=${domain}&hostname=${hostname}&serial=${serial}&arch=${buildarch:uristring}
`
var ipxeTemplate = template.Must(template.New("iPXE config").Parse(`#!ipxe