From 7eb766437ef4bea52900e177a2bee86d4b4908b5 Mon Sep 17 00:00:00 2001 From: Dorian Stoll Date: Tue, 5 Sep 2023 15:21:18 +0200 Subject: [PATCH] pkg: fedora: Use the proper path to set the default kernel grubby --set-default expects the path that GRUB will use to access the kernel. This adds compatibility with /boot on a BTRFS subvolume. --- .../kernel-surface/files/linux-surface-default-watchdog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/fedora/kernel-surface/files/linux-surface-default-watchdog.sh b/pkg/fedora/kernel-surface/files/linux-surface-default-watchdog.sh index 376c8c31f..c76d506f2 100755 --- a/pkg/fedora/kernel-surface/files/linux-surface-default-watchdog.sh +++ b/pkg/fedora/kernel-surface/files/linux-surface-default-watchdog.sh @@ -16,7 +16,7 @@ VMLINUX="$(echo "${KERNELS}" | tail -n1 | cut -d' ' -f2)" echo "${VMLINUX}" # update GRUB config -grubby --set-default "${VMLINUX}" +grubby --set-default "$(grub2-mkrelpath "${BOOTPATH}")" # Update timestamp for rEFInd # Ensure it's marked as latest across all kernels, not just surface ones