From c7164c8f74689ff379f5c9985702a7f90030ca56 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Mon, 3 Oct 2022 12:30:27 +0200 Subject: [PATCH] Fix ironic-pxe EFI path for rocky Change-Id: I6c82ef5b148b3ebdc8241871117dbe6cd68ed070 (cherry picked from commit 1d924eff038b0238aca8ca40fbd1c1dd68f57ed9) --- docker/ironic/ironic-pxe/extend_start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/ironic/ironic-pxe/extend_start.sh b/docker/ironic/ironic-pxe/extend_start.sh index 155fbf760b..c0272c1c05 100644 --- a/docker/ironic/ironic-pxe/extend_start.sh +++ b/docker/ironic/ironic-pxe/extend_start.sh @@ -21,8 +21,8 @@ function prepare_pxe_grub { shim_src_file="/usr/lib/shim/shim*64.efi.signed" grub_src_file="/usr/lib/grub/*-efi-signed/grubnet*64.efi.signed" elif [[ "${KOLLA_BASE_DISTRO}" =~ centos|rocky ]]; then - shim_src_file="/boot/efi/EFI/centos/shim*64.efi" - grub_src_file="/boot/efi/EFI/centos/grub*64.efi" + shim_src_file="/boot/efi/EFI/${KOLLA_BASE_DISTRO}/shim*64.efi" + grub_src_file="/boot/efi/EFI/${KOLLA_BASE_DISTRO}/grub*64.efi" fi if [[ "${KOLLA_BASE_ARCH}" == "x86_64" ]]; then