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>
(cherry picked from commit 9b30a4b31dde7534f15428b16881d1359b025b41)
  • Loading branch information
smira committed Dec 16, 2021
1 parent c48c392 commit 2c5ee40
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 @@ -68,7 +68,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 2c5ee40

Please sign in to comment.