Skip to content

Commit

Permalink
fix: update HTTP boot filename
Browse files Browse the repository at this point in the history
We need to use EFI version of iPXE.

Fixes #1295

Signed-off-by: Andrey Smirnov <[email protected]>
  • Loading branch information
smira committed Apr 24, 2024
1 parent c59c6a4 commit d91ab75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/sidero-controller-manager/internal/dhcp/dhcp_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ func offerDHCP(req *dhcpv4.DHCPv4, apiEndpoint string, apiPort int, fwtype Firmw
resp.UpdateOption(dhcpv4.OptBootFileName("snp-arm64.efi"))
case FirmwareX86HTTP:
// This is completely standard HTTP-boot: just load a file from HTTP.
resp.UpdateOption(dhcpv4.OptBootFileName(fmt.Sprintf("http://%s/tftp/snp.ipxe", net.JoinHostPort(serverIP.String(), strconv.Itoa(apiPort)))))
resp.UpdateOption(dhcpv4.OptBootFileName(fmt.Sprintf("http://%s/tftp/snp.efi", net.JoinHostPort(serverIP.String(), strconv.Itoa(apiPort)))))
case FirmwareARMHTTP:
// This is completely standard HTTP-boot: just load a file from HTTP.
resp.UpdateOption(dhcpv4.OptBootFileName(fmt.Sprintf("http://%s/tftp/snp-arm64.ipxe", net.JoinHostPort(serverIP.String(), strconv.Itoa(apiPort)))))
resp.UpdateOption(dhcpv4.OptBootFileName(fmt.Sprintf("http://%s/tftp/snp-arm64.efi", net.JoinHostPort(serverIP.String(), strconv.Itoa(apiPort)))))
case FirmwareUnsupported:
fallthrough
default:
Expand Down

0 comments on commit d91ab75

Please sign in to comment.