|
@@ -15,8 +15,15 @@ VMLINUX="$(echo "${KERNELS}" | tail -n1 | cut -d' ' -f2)"
|
|
|
|
|
|
echo "${VMLINUX}"
|
|
echo "${VMLINUX}"
|
|
|
|
|
|
|
|
+# Find the BLS snipped associated with this kernel
|
|
|
|
+VERSION="$(basename "${VMLINUX}" | cut -d'-' -f2-)"
|
|
|
|
+BLS="$(find /boot/loader/entries -maxdepth 1 -name "*${VERSION}*")"
|
|
|
|
+
|
|
|
|
+# Find the path that the bootloader uses to boot the kernel
|
|
|
|
+BOOTPATH="$(grep linux "${BLS}" | cut -d' ' -f2-)"
|
|
|
|
+
|
|
# update GRUB config
|
|
# update GRUB config
|
|
-grubby --set-default "${VMLINUX}"
|
|
|
|
|
|
+grubby --set-default "${BOOTPATH}"
|
|
|
|
|
|
# Update timestamp for rEFInd
|
|
# Update timestamp for rEFInd
|
|
# Ensure it's marked as latest across all kernels, not just surface ones
|
|
# Ensure it's marked as latest across all kernels, not just surface ones
|