Skip to content

Commit dc0424e

Browse files
committed
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 (cherry picked from commit bb234c6ce8c2ff96691c9fc645ec78d2b26ceddd)
1 parent ed199ee commit dc0424e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docker/ironic/ironic-pxe/extend_start.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ function prepare_ipxe {
5151
cp /usr/lib/ipxe/{undionly.kpxe,ipxe*.efi,snponly.efi} ${TFTPBOOT_PATH}/
5252
elif [[ "${KOLLA_BASE_DISTRO}" =~ centos|rocky ]]; then
5353
cp /usr/share/ipxe/{undionly.kpxe,ipxe*.efi} ${TFTPBOOT_PATH}/
54+
cp /usr/share/ipxe/arm64-efi/snponly.efi ${TFTPBOOT_PATH}/ipxe-snponly-aarch64.efi
5455
if [[ ! -e ${TFTPBOOT_PATH}/ipxe.efi ]]; then
55-
ln -s ${TFTPBOOT_PATH}/ipxe-${KOLLA_BASE_ARCH}.efi ${TFTPBOOT_PATH}/ipxe.efi
56+
# NOTE(m-anson): No ipxe-aarch64.efi exists so no need to use
57+
# $KOLLA_BASE_ARCH in the symlink target
58+
ln -s ${TFTPBOOT_PATH}/ipxe-x86_64.efi ${TFTPBOOT_PATH}/ipxe.efi
5659
fi
5760
if [[ ! -e ${TFTPBOOT_PATH}/snponly.efi ]]; then
5861
ln -s ${TFTPBOOT_PATH}/ipxe-snponly-${KOLLA_BASE_ARCH}.efi ${TFTPBOOT_PATH}/snponly.efi
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
fixes:
3+
- |
4+
Ensure that ipxe-snponly-aarch64.efi is available in
5+
/tftpboot in Centos and Rocky after bootstrapping
6+
ironic-pxe.
7+

0 commit comments

Comments
 (0)