
This patch allows the custom iPXE boot script that bifrost supplies to use the templating feature provided by ironic since Ocata release. In the long run this will also be needed to support the Dynamic iPXE Configuration feature. Change-Id: I21f7f8433277349ad01323ead6ecd277a0b61e3b
18 lines
423 B
Plaintext
18 lines
423 B
Plaintext
#!ipxe
|
|
|
|
isset ${mac:hexhyp} && goto boot_system ||
|
|
chain ipxe.pxe
|
|
|
|
# load the MAC-specific file or fail if it's not found
|
|
:boot_system
|
|
chain {{ ipxe_for_mac_uri }}${mac:hexhyp} || goto inspector_ipa
|
|
|
|
:inspector_ipa
|
|
chain {{ ipxe_for_mac_uri }}default || goto error_no_config
|
|
|
|
:error_no_config
|
|
echo PXE boot failed. No configuration found for MAC ${mac}
|
|
echo Press any key to reboot...
|
|
prompt --timeout 180 || reboot
|
|
reboot
|