We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1054d41 + c1479ae commit 552acfdCopy full SHA for 552acfd
resources/hiding_ci/build_and_install_kernel.sh
@@ -122,7 +122,9 @@ al2023_update_boot() {
122
dracut --kver $KERNEL_VERSION -f -v
123
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)
+ # We add the || true here due to the fact that we have pipefail enabled
126
+ # this causes a non 0 exit when ls cant find vmlinux or vmlinux
127
+ VM_LINUX_LOCATION=$(ls /boot/vmlinu{x,z}-$KERNEL_VERSION 2>/dev/null | head -n1 || true)
128
129
echo "Updating GRUB..."
130
grubby --grub2 --add-kernel $VM_LINUX_LOCATION \
0 commit comments