Skip to content

Commit

Permalink
Update embeded ipxe script:
Browse files Browse the repository at this point in the history
This handles breaking out of the `dhcp` looping
properly.

Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Nov 6, 2024
1 parent f4626d4 commit 1df42de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binary/script/embed.ipxe
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ set retry-max:int32 10
set count:int32 1
:retry-loop1
echo trying dhcp ( attempt ${count}/${retry-max} )
dhcp net${idx} && goto done1 || iseq ${count} ${retry-max} || inc count && goto retry-loop1
dhcp net${idx} && goto done1 || iseq ${count} ${retry-max} && goto done1 || inc count && goto retry-loop1
:done1
autoboot net${idx} || exit

Expand All @@ -35,7 +35,7 @@ set retry-max:int32 10
set count:int32 1
:retry-loop2
echo trying dhcp ( attempt ${count}/${retry-max} )
dhcp && goto done2 || iseq ${count} ${retry-max} || inc count && goto retry-loop2
dhcp && goto done2 || iseq ${count} ${retry-max} && goto done2 || inc count && goto retry-loop2
:done2
autoboot || exit

Expand Down

0 comments on commit 1df42de

Please sign in to comment.