diff options
| author | Matt Anson <matta@stackhpc.com> | 2025-04-08 17:25:02 +0100 |
|---|---|---|
| committer | Matt Anson <matta@stackhpc.com> | 2025-04-08 21:04:04 +0100 |
| commit | 80d931982a81cf3821249e077c21ed36d9d9b170 (patch) | |
| tree | 37cdd28e10aed6e95283b9b7e2fb28e294ff5e1d /docker | |
| parent | e7391f65bdaa7f0cb75443a5a0139415dc82550a (diff) | |
| download | kolla-80d931982a81cf3821249e077c21ed36d9d9b170.tar.gz kolla-80d931982a81cf3821249e077c21ed36d9d9b170.zip | |
Fix preparation of /tftpboot for ironic-pxe
Copy aarch64 snponly.efi to /tftpboot during bootstrapping
of Centos- and Rocky-based ironic-pxe.
Don't use $KOLLA_BASE_ARCH when symlinking to
/tftpboot/ipxe.efi, because an aarch64 variant of this
binary doesn't exist, just x86_64.
Change-Id: Ie19fcb441a2e54a60762e5c8483487b713a29ddd
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/ironic/ironic-pxe/extend_start.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docker/ironic/ironic-pxe/extend_start.sh b/docker/ironic/ironic-pxe/extend_start.sh index 48504c6e6..07652b803 100644 --- a/docker/ironic/ironic-pxe/extend_start.sh +++ b/docker/ironic/ironic-pxe/extend_start.sh @@ -51,8 +51,11 @@ function prepare_ipxe { cp /usr/lib/ipxe/{undionly.kpxe,ipxe*.efi,snponly.efi} ${TFTPBOOT_PATH}/ elif [[ "${KOLLA_BASE_DISTRO}" =~ centos|rocky ]]; then cp /usr/share/ipxe/{undionly.kpxe,ipxe*.efi} ${TFTPBOOT_PATH}/ + cp /usr/share/ipxe/arm64-efi/snponly.efi ${TFTPBOOT_PATH}/ipxe-snponly-aarch64.efi if [[ ! -e ${TFTPBOOT_PATH}/ipxe.efi ]]; then - ln -s ${TFTPBOOT_PATH}/ipxe-${KOLLA_BASE_ARCH}.efi ${TFTPBOOT_PATH}/ipxe.efi + # NOTE(m-anson): No ipxe-aarch64.efi exists so no need to use + # $KOLLA_BASE_ARCH in the symlink target + ln -s ${TFTPBOOT_PATH}/ipxe-x86_64.efi ${TFTPBOOT_PATH}/ipxe.efi fi if [[ ! -e ${TFTPBOOT_PATH}/snponly.efi ]]; then ln -s ${TFTPBOOT_PATH}/ipxe-snponly-${KOLLA_BASE_ARCH}.efi ${TFTPBOOT_PATH}/snponly.efi |
