From 1484cf7354c3d0c510f6721372a36e0e5f724b5f Mon Sep 17 00:00:00 2001 From: Hugo Florenty Date: Tue, 28 Mar 2023 13:32:37 +0100 Subject: [PATCH] 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. --- matchbox/http/ipxe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matchbox/http/ipxe.go b/matchbox/http/ipxe.go index 3c1bd60e..c4ee5212 100644 --- a/matchbox/http/ipxe.go +++ b/matchbox/http/ipxe.go @@ -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