Skip to content

Commit b410770

Browse files
JackThomson2roypat
authored andcommitted
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 <jackabt@amazon.com>
1 parent 7caefb3 commit b410770

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

resources/hiding_ci/build_and_install_kernel.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,14 @@ al2023_update_boot() {
121121
echo "Creating the new ram disk"
122122
dracut --kver $KERNEL_VERSION -f -v
123123

124+
# This varies from x86 and ARM so capture what was generated
125+
VM_LINUX_LOCATION=$(ls /boot/vmlinu{x,z}-$KERNEL_VERSION 2>/dev/null | head -n1)
126+
124127
echo "Updating GRUB..."
125-
grubby --grub2 --add-kernel /boot/vmlinux-$KERNEL_VERSION \
128+
grubby --grub2 --add-kernel $VM_LINUX_LOCATION \
126129
--title="Secret Hiding" \
127130
--initrd=/boot/initramfs-$KERNEL_VERSION.img --copy-default
128-
grubby --set-default /boot/vmlinux-$KERNEL_VERSION
131+
grubby --set-default $VM_LINUX_LOCATION
129132
}
130133

131134
update_boot_config() {

0 commit comments

Comments
 (0)