Skip to content

Commit dada83c

Browse files
committed
fix: Stop the scan for vmlinux failing
Previously this would fail on x86 as we set -e. By setting the || echo this means the script will continue. The grubby step next will fail if it failed to find the image. Signed-off-by: Jack Thomson <[email protected]>
1 parent 1891d72 commit dada83c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/hiding_ci/build_and_install_kernel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ al2023_update_boot() {
122122
dracut --kver $KERNEL_VERSION -f -v
123123

124124
# 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)
125+
VM_LINUX_LOCATION=$(ls /boot/vmlinu{x,z}-$KERNEL_VERSION 2>/dev/null | head -n1 || echo "")
126126

127127
echo "Updating GRUB..."
128128
grubby --grub2 --add-kernel $VM_LINUX_LOCATION \

0 commit comments

Comments
 (0)