aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Jones <owen@stackhpc.com>2026-07-10 14:53:24 +0100
committerOwen Jones <owen@stackhpc.com>2026-08-03 10:52:24 +0100
commite40da0d4a7a73212cb16698a12eaeb5799cc55c7 (patch)
tree76b67647c9ec4a23a29ced67137ba697be0ae52b
parentebb7e92fa225d843427082a92b06648aa1db9800 (diff)
downloadkolla-e40da0d4a7a73212cb16698a12eaeb5799cc55c7.tar.gz
kolla-e40da0d4a7a73212cb16698a12eaeb5799cc55c7.zip
ironic-pxe: don't fail if symlinks already exist22.1.0
`ironic-pxe` start-up fails if symlinks to efi files have previously been created. Removing test for existence and adding `-f` flag to symlink creation ensures they always exist without failing on start. Closes-Bug: #2160317 Change-Id: Ib736e5beb201409c8987fbc62225c75f89cbfe62 Signed-off-by: Owen Jones <owen@stackhpc.com> (cherry picked from commit 2da1223d8301da05f9b070ca656d62c1bde93c66)
-rw-r--r--docker/ironic/ironic-pxe/extend_start.sh6
-rw-r--r--releasenotes/notes/ironic-pxe-symlinks-18d09b19373f16c4.yaml6
2 files changed, 8 insertions, 4 deletions
diff --git a/docker/ironic/ironic-pxe/extend_start.sh b/docker/ironic/ironic-pxe/extend_start.sh
index 06a8312b4..8e4d63307 100644
--- a/docker/ironic/ironic-pxe/extend_start.sh
+++ b/docker/ironic/ironic-pxe/extend_start.sh
@@ -46,15 +46,13 @@ function prepare_ipxe {
# NOTE(m-anson): ipxe-arm64.efi is not symlinked from /boot to
# /usr/lib/ipxe by the Ubuntu ipxe package, so fix that here.
if [[ -e /boot/ipxe-arm64.efi ]]; then
- ln -s /boot/ipxe-arm64.efi /usr/lib/ipxe/
+ ln -sf /boot/ipxe-arm64.efi /usr/lib/ipxe/
fi
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-snponly-x86_64.efi} ${TFTPBOOT_PATH}/
cp /usr/share/ipxe/arm64-efi/snponly.efi ${TFTPBOOT_PATH}/ipxe-snponly-aarch64.efi
- if [[ ! -e ${TFTPBOOT_PATH}/snponly.efi ]]; then
- ln -s ${TFTPBOOT_PATH}/ipxe-snponly-${KOLLA_BASE_ARCH}.efi ${TFTPBOOT_PATH}/snponly.efi
- fi
+ ln -sf ${TFTPBOOT_PATH}/ipxe-snponly-${KOLLA_BASE_ARCH}.efi ${TFTPBOOT_PATH}/snponly.efi
fi
}
diff --git a/releasenotes/notes/ironic-pxe-symlinks-18d09b19373f16c4.yaml b/releasenotes/notes/ironic-pxe-symlinks-18d09b19373f16c4.yaml
new file mode 100644
index 000000000..1f4d4db37
--- /dev/null
+++ b/releasenotes/notes/ironic-pxe-symlinks-18d09b19373f16c4.yaml
@@ -0,0 +1,6 @@
+---
+fixes:
+ - |
+ Fixes ``ironic_pxe`` launch failures when symlinks to EFI files have
+ previously been created.
+ `LP#2160317 <https://launchpad.net/bugs/2160317>`__