Guest User

Untitled

a guest
Jul 13th, 2022
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. #!ipxe
  2.  
  3. # NOTE(lucasagomes): Loop over all network devices and boot from
  4. # the first one capable of booting. For more information see:
  5. # https://bugs.launchpad.net/ironic/+bug/1504482
  6. set netid:int32 -1
  7. :loop
  8. inc netid || chain pxelinux.cfg/${mac:hexhyp} || goto old_rom
  9. isset ${net${netid}/mac} || goto loop_done
  10. echo Attempting to boot from MAC ${net${netid}/mac:hexhyp}
  11. chain pxelinux.cfg/${net${netid}/mac:hexhyp} || goto loop
  12.  
  13. :loop_done
  14. echo PXE boot failed! No configuration found for any of the present NICs.
  15. echo Press any key to reboot...
  16. prompt --timeout 180
  17. reboot
  18.  
  19. :old_rom
  20. echo PXE boot failed! No configuration found for NIC ${mac:hexhyp}.
  21. echo Please update your iPXE ROM and retry.
  22. echo Press any key to reboot...
  23. prompt --timeout 180
Advertisement
Add Comment
Please, Sign In to add comment