public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/grub2] rawhide: Fix default kernel not getting updated when using kernel-uki-dtbloader
@ 2026-07-06 18:15 Hans de Goede
0 siblings, 0 replies; only message in thread
From: Hans de Goede @ 2026-07-06 18:15 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/grub2
Branch : rawhide
Commit : 1bade72b0d656baf00e51bb26b1b0da9c82bea81
Author : Hans de Goede <johannes.goede@oss.qualcomm.com>
Date : 2026-07-01T18:46:12+02:00
Stats : +60/-1 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/grub2/c/1bade72b0d656baf00e51bb26b1b0da9c82bea81?branch=rawhide
Log:
Fix default kernel not getting updated when using kernel-uki-dtbloader
Resolves: #2463620
Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
---
diff --git a/0445-grub-get-kernel-settings-Treate-kernel-uki-dtbloader.patch b/0445-grub-get-kernel-settings-Treate-kernel-uki-dtbloader.patch
new file mode 100644
index 0000000..e17e1b6
--- /dev/null
+++ b/0445-grub-get-kernel-settings-Treate-kernel-uki-dtbloader.patch
@@ -0,0 +1,54 @@
+From 0b8c845dd5e91fab6304109554e408201f30fc24 Mon Sep 17 00:00:00 2001
+From: Hans de Goede <johannes.goede@oss.qualcomm.com>
+Date: Sat, 30 May 2026 14:28:51 +0200
+Subject: [PATCH] grub-get-kernel-settings: Treate kernel-uki-dtbloader as
+ default kernel
+
+kernel-uki-dtbloader is a drop-in replacement for kernel-core, it even
+conflicts with kernel-core since it uses identical filenames under /boot.
+
+Before this patch grub-get-kernel-settings handled kernel-uki-dtbloader as
+a special kernel variant, causing GRUB_NON_STANDARD_KERNEL=true to get set
+which leads to /lib/kernel/install.d/20-grub.install setting
+GRUB_UPDATE_DEFAULT_KERNEL=false which results in skipping the
+grub2-set-default call later on during kernel-install.
+
+As a result of this users of Fedora 44+ ARM64 live media which uses
+kernel-uki-dtbloader would still get the old kernel on reboot after
+installing kernel updates (Bug 2463620 - GRUB environment variable
+saved_entry not updated when installing UKI kernel on F44 aarch64).
+
+Resolve this by treating kernel-uki-dtbloader as default kernel, just
+like how kernel-core is handled.
+
+Note on the next rebase of rhboot/grub this may be merged into
+commit c5baa5c1003d ("Add grub-get-kernel-settings and use it in 10_linux")
+
+Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2463620
+Fixes: c5baa5c1003d ("Add grub-get-kernel-settings and use it in 10_linux")
+Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
+---
+ util/grub-get-kernel-settings.in | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/util/grub-get-kernel-settings.in b/util/grub-get-kernel-settings.in
+index f71bc6436..47ea97868 100644
+--- a/util/grub-get-kernel-settings.in
++++ b/util/grub-get-kernel-settings.in
+@@ -68,7 +68,12 @@ if test -f /etc/sysconfig/kernel ; then
+ . /etc/sysconfig/kernel
+ fi
+
+-GRUB_DEFAULT_KERNEL_TYPE=${DEFAULTKERNEL/-core/}
++# kernel-uki-dtbloader is a drop in replacement for kernel-core, treat it as such
++if [ "$DEFAULTKERNEL" = "kernel-uki-dtbloader" ]; then
++ GRUB_DEFAULT_KERNEL_TYPE="kernel"
++else
++ GRUB_DEFAULT_KERNEL_TYPE=${DEFAULTKERNEL/-core/}
++fi
+ if [ "$GRUB_DEFAULT_KERNEL_TYPE" != "kernel" ]; then
+ echo GRUB_NON_STANDARD_KERNEL=true
+ echo export GRUB_NON_STANDARD_KERNEL
+--
+2.54.0
+
diff --git a/grub.patches b/grub.patches
index 50bb055..6a187e5 100644
--- a/grub.patches
+++ b/grub.patches
@@ -441,3 +441,4 @@ Patch0441: 0441-ieee1275-change-the-logic-of-ieee1275_get_devargs.patch
Patch0442: 0442-ieee1275-ofpath-enable-NVMeoF-logical-device-transla.patch
Patch0443: 0443-ieee1275-support-added-for-multiple-nvme-bootpaths.patch
Patch0444: 0444-ieee1275-add-support-for-NVMeoFC.patch
+Patch0445: 0445-grub-get-kernel-settings-Treate-kernel-uki-dtbloader.patch
diff --git a/grub2.spec b/grub2.spec
index c951083..2c48797 100644
--- a/grub2.spec
+++ b/grub2.spec
@@ -17,7 +17,7 @@
Name: grub2
Epoch: 1
Version: 2.12
-Release: 67%{?dist}
+Release: 68%{?dist}
Summary: Bootloader with support for Linux, Multiboot and more
License: GPL-3.0-or-later
URL: http://www.gnu.org/software/grub/
@@ -625,6 +625,10 @@ fi
%endif
%changelog
+* Wed Jul 1 2026 Hans de Goede <johannes.goede@oss.qualcomm.com> - 2.12-68
+- Fix default kernel not getting updated when using kernel-uki-dtbloader
+- Resolves: #2463620
+
* Thu Jun 25 2026 Nicolas Frayer <nfrayer@redhat.com> - 2.12-67
- ieee1275/powerpc: implements fibre channel discovery for ofpathname
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-06 18:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-06 18:15 [rpms/grub2] rawhide: Fix default kernel not getting updated when using kernel-uki-dtbloader Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox