Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add iPXE autoboot retries: #157

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions binary/script/embed.ipxe
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@ isset ${net${idx}/ip} && goto interfaces-loop-done || iseq ${idx} 50 && goto aut

:interfaces-loop-done
echo Booting from net${idx}...
autoboot net${idx}
set idx:int32 0
:autoboot-interface-loop
autoboot net${idx} || iseq ${idx} 10 || inc idx && goto autoboot-interface-loop

:autoboot
autoboot
set idx:int32 0
:autoboot-loop
autoboot || iseq ${idx} 10 && goto autoboot-error || inc idx && goto autoboot-loop


:boot-with-vlan
set idx:int32 0
Expand All @@ -41,3 +46,7 @@ autoboot net${idx}-${vlan-id}
:error
echo Failed to find the vlan interface
shell

:autoboot-error
echo Failed to autoboot
exit