From 712f6100c5e1baeecb6b991918ce4a98909a3e19 Mon Sep 17 00:00:00 2001 From: Jack Thomson Date: Fri, 4 Apr 2025 13:26:06 +0000 Subject: [PATCH] ci: Update the script to support x86 on AL23 The output from the build in x86 is archived so updated the script to support installing either output type from the build Signed-off-by: Jack Thomson --- resources/hiding_ci/build_and_install_kernel.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/hiding_ci/build_and_install_kernel.sh b/resources/hiding_ci/build_and_install_kernel.sh index 949d7fdac4a..79d6129f6d0 100755 --- a/resources/hiding_ci/build_and_install_kernel.sh +++ b/resources/hiding_ci/build_and_install_kernel.sh @@ -121,11 +121,14 @@ al2023_update_boot() { echo "Creating the new ram disk" dracut --kver $KERNEL_VERSION -f -v + # This varies from x86 and ARM so capture what was generated + VM_LINUX_LOCATION=$(ls /boot/vmlinu{x,z}-$KERNEL_VERSION 2>/dev/null | head -n1) + echo "Updating GRUB..." - grubby --grub2 --add-kernel /boot/vmlinux-$KERNEL_VERSION \ + grubby --grub2 --add-kernel $VM_LINUX_LOCATION \ --title="Secret Hiding" \ --initrd=/boot/initramfs-$KERNEL_VERSION.img --copy-default - grubby --set-default /boot/vmlinux-$KERNEL_VERSION + grubby --set-default $VM_LINUX_LOCATION } update_boot_config() {