I noticed that when some machines have a non-routable NIC, the iPXE script will fail on this. E.g. ASPEED BMC's may offer a 'host interface', which is usable within iPXE but its not useful.
By checking for the gateway field, it shouldn't fail on this (or check for next-server if its a local DHCP server). For Luna2 installs where the Luna2 daemon is responsible for the local network (DHCP), next-server might be best.
In the bootloop (in templ_boot_ipxe.cfg) I added:
isset ${net${idx}/gateway}
I noticed that when some machines have a non-routable NIC, the iPXE script will fail on this. E.g. ASPEED BMC's may offer a 'host interface', which is usable within iPXE but its not useful.
By checking for the
gatewayfield, it shouldn't fail on this (or check fornext-serverif its a local DHCP server). For Luna2 installs where the Luna2 daemon is responsible for the local network (DHCP),next-servermight be best.In the bootloop (in templ_boot_ipxe.cfg) I added: