From a5850132368160cef6941820ea3068986a160994 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Mon, 27 Nov 2023 15:01:59 +1300 Subject: [PATCH] Fix the boot EFI path for RHEL containers On RHEL-9.x the path is /boot/efi/EFI/redhat, not /boot/efi/EFI/rhel (cherry picked from commit bf95ab3f2cde3aee7829a7015db777d8997a0be3) --- templates/ironicconductor/bin/pxe-init.sh | 4 ++-- templates/ironicinspector/bin/pxe-init.sh | 4 ++-- tests/functional/base_test.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/ironicconductor/bin/pxe-init.sh b/templates/ironicconductor/bin/pxe-init.sh index 1febd900..261718b8 100755 --- a/templates/ironicconductor/bin/pxe-init.sh +++ b/templates/ironicconductor/bin/pxe-init.sh @@ -24,8 +24,8 @@ fi # Check for expected EFI directories if [ -d "/boot/efi/EFI/centos" ]; then efi_dir=centos -elif [ -d "/boot/efi/EFI/rhel" ]; then - efi_dir=rhel +elif [ -d "/boot/efi/EFI/redhat" ]; then + efi_dir=redhat else echo "No EFI directory detected" exit 1 diff --git a/templates/ironicinspector/bin/pxe-init.sh b/templates/ironicinspector/bin/pxe-init.sh index f12f2015..32d380b0 100755 --- a/templates/ironicinspector/bin/pxe-init.sh +++ b/templates/ironicinspector/bin/pxe-init.sh @@ -41,8 +41,8 @@ envsubst < ${INSPECTOR_IPXE} | tee ${INSPECTOR_IPXE} # Check for expected EFI directories if [ -d "/boot/efi/EFI/centos" ]; then efi_dir=centos -elif [ -d "/boot/efi/EFI/rhel" ]; then - efi_dir=rhel +elif [ -d "/boot/efi/EFI/redhat" ]; then + efi_dir=redhat else echo "No EFI directory detected" exit 1 diff --git a/tests/functional/base_test.go b/tests/functional/base_test.go index 926c5ba1..8eb168bd 100644 --- a/tests/functional/base_test.go +++ b/tests/functional/base_test.go @@ -42,7 +42,7 @@ const ( PxeContainerImage = "test://pxe-image" IronicPythonAgentImage = "test://ipa-image" IronicInputHash = "n5b8h55ch59ch64ch66dh67bh7h565h687h55bh6hbbhf9h59fh7bhcfh657h68fh5f8h574h654h75h675h695h5f4h588h68dh674h56bh574h5d4h568q" - ConductorInputHash = "n75h57bh9h5b8h5fchcbh55h5fhd5h6dh57bhd5h547h696h5f9h79hffh58fh55fh66bh5b6h68dh9dh5ch694hf5h55bh84h9bh5bch5c5h545q" + ConductorInputHash = "n64bh548h5cfhf6h5cfh68fh97h67ch595h567h88h9h97h8dh565h57h65dh9h575h64bh59bh667h575hbfhf4h598h5f5h5ddh5dch587h5b6h556q" APIInputHash = "n58ch588h669h549hddh64dhd6h687h5f5h57bh679h5b6hf6hf8h96h58fh684h589h574h54dh95hf5h64bh696h7h86hd4hf6h9fh545h68ch96q" )