Skip to content

Commit

Permalink
fix: make iPXE script replace script on chain request
Browse files Browse the repository at this point in the history
Without `--replace`, if the iPXE script downloaded exists, control goes
back to the main script which will keep retrying. This breaks cases like
`ipxe-exit` which rely on iPXE exit to continue e.g. booting from disk.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
  • Loading branch information
smira committed Dec 9, 2021
1 parent 1bbe3be commit 9a27861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/sidero-controller-manager/internal/ipxe/ipxe_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ set x:int32 0
# attempt boot, if fails try next iface
route
chain http://{{ .Endpoint }}:{{ .Port }}/ipxe?uuid=${uuid}&mac=${net${idx}/mac:hexhyp}&domain=${domain}&hostname=${hostname}&serial=${serial}&arch=${buildarch} || goto next_iface
chain --replace http://{{ .Endpoint }}:{{ .Port }}/ipxe?uuid=${uuid}&mac=${net${idx}/mac:hexhyp}&domain=${domain}&hostname=${hostname}&serial=${serial}&arch=${buildarch} || goto next_iface
:exhausted
echo
Expand Down

0 comments on commit 9a27861

Please sign in to comment.