How to fallback to boot from local hard drive in iPXE script

netbootpxe-boot

I have a script being loaded from iPXE.

What I want is to make the script fall back to boot from a local hard drive (or CDROM) on failure to boot from the san.

The idea is allow installation of an Operating System onto the SAN target from local CDROM or USB drive.

I can't see anywhere that in the iPXE documentation that tells me how to boot from a local internal drive. How do I do this?

Best Answer

The normal way to do that is just to setup your local drive as the next item in the BIOS boot order and use the exit command in the iPXE shell or script.