Use boot.ipxe generated by Ironic
Ironic can now generate a boot.ipxe that is compatible with Inspector. Change-Id: I7dbbbc8f3060ff8b65fa48a65cf4bcc701474491 Depends-On: https://review.opendev.org/c/openstack/ironic/+/817998
This commit is contained in:
parent
3dbc7347ec
commit
ff87a5946f
@ -1,17 +0,0 @@
|
|||||||
#!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
|
|
@ -27,8 +27,11 @@
|
|||||||
service: name="{{ tftp_service_name }}" state=stopped enabled=no
|
service: name="{{ tftp_service_name }}" state=stopped enabled=no
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: "Place boot.ipxe helper script /etc/ironic"
|
# NOTE(dtantsur): the code to remove boot.ipxe can be removed after Yoga
|
||||||
copy: src=boot.ipxe dest=/etc/ironic/boot.ipxe owner=ironic group=ironic mode=0744
|
- name: Remove the stale boot.ipxe
|
||||||
|
file:
|
||||||
|
path: /etc/ironic/boot.ipxe
|
||||||
|
state: absent
|
||||||
|
|
||||||
# NOTE(dtantsur): the code to migrate from xinetd can be removed after Xena
|
# NOTE(dtantsur): the code to migrate from xinetd can be removed after Xena
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ deploy_logs_local_path = {{ ironic_agent_deploy_logs_local_path }}
|
|||||||
kernel_append_params = {{ pxe_kernel_params }}
|
kernel_append_params = {{ pxe_kernel_params }}
|
||||||
tftp_server = {{ internal_ip }}
|
tftp_server = {{ internal_ip }}
|
||||||
tftp_root = /tftpboot
|
tftp_root = /tftpboot
|
||||||
ipxe_boot_script = /etc/ironic/boot.ipxe
|
ipxe_fallback_script = pxelinux.cfg/default
|
||||||
tftp_master_path = {{ ironic_tftp_master_path }}
|
tftp_master_path = {{ ironic_tftp_master_path }}
|
||||||
{% if enable_uefi_ipxe | bool %}
|
{% if enable_uefi_ipxe | bool %}
|
||||||
uefi_ipxe_bootfile_name = {{ ipxe_efi_binary }}
|
uefi_ipxe_bootfile_name = {{ ipxe_efi_binary }}
|
||||||
|
5
releasenotes/notes/ipxe-fallback-245535c4fb9ddc0b.yaml
Normal file
5
releasenotes/notes/ipxe-fallback-245535c4fb9ddc0b.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
other:
|
||||||
|
- |
|
||||||
|
No longer installs ``/etc/ironic/boot.ipxe``, relying on the boot script
|
||||||
|
generated by Ironic instead.
|
Loading…
x
Reference in New Issue
Block a user