util: Enable default kernel for updates
Resolves: #RHEL-4343 Signed-off-by: Nicolas Frayer <nfrayer@redhat.com>
This commit is contained in:
parent
2c4092ba33
commit
acd0af7a88
34
0581-util-Enable-default-kernel-for-updates.patch
Normal file
34
0581-util-Enable-default-kernel-for-updates.patch
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nicolas Frayer <nfrayer@redhat.com>
|
||||||
|
Date: Wed, 24 May 2023 11:22:47 +0200
|
||||||
|
Subject: [PATCH] util: Enable default kernel for updates
|
||||||
|
|
||||||
|
Several kernel variants can be installed on a system in parallel.
|
||||||
|
In order to allow the user to choose which kernel will be set to
|
||||||
|
default after an update, re-enable grub's usage of DEFAULTKERNEL as
|
||||||
|
set in /etc/sysconfig/kernel
|
||||||
|
|
||||||
|
Signed-off-by: Nicolas Frayer <nfrayer@redhat.com>
|
||||||
|
---
|
||||||
|
util/grub-get-kernel-settings.in | 8 ++++++++
|
||||||
|
1 file changed, 8 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/util/grub-get-kernel-settings.in b/util/grub-get-kernel-settings.in
|
||||||
|
index 7e87dfccc0e4..f71bc64360b0 100644
|
||||||
|
--- a/util/grub-get-kernel-settings.in
|
||||||
|
+++ b/util/grub-get-kernel-settings.in
|
||||||
|
@@ -68,6 +68,14 @@ if test -f /etc/sysconfig/kernel ; then
|
||||||
|
. /etc/sysconfig/kernel
|
||||||
|
fi
|
||||||
|
|
||||||
|
+GRUB_DEFAULT_KERNEL_TYPE=${DEFAULTKERNEL/-core/}
|
||||||
|
+if [ "$GRUB_DEFAULT_KERNEL_TYPE" != "kernel" ]; then
|
||||||
|
+ echo GRUB_NON_STANDARD_KERNEL=true
|
||||||
|
+ echo export GRUB_NON_STANDARD_KERNEL
|
||||||
|
+ GRUB_DEFAULT_KERNEL_TYPE=${GRUB_DEFAULT_KERNEL_TYPE/kernel-/}
|
||||||
|
+fi
|
||||||
|
+echo GRUB_DEFAULT_KERNEL_TYPE=$GRUB_DEFAULT_KERNEL_TYPE
|
||||||
|
+echo export GRUB_DEFAULT_KERNEL_TYPE
|
||||||
|
if [ "$MAKEDEBUG" = "yes" ]; then
|
||||||
|
echo GRUB_LINUX_MAKE_DEBUG=true
|
||||||
|
echo export GRUB_LINUX_MAKE_DEBUG
|
@ -578,3 +578,4 @@ Patch0577: 0577-ieee1275-Converting-plain-numbers-to-constants-in-Ve.patch
|
|||||||
Patch0578: 0578-ieee1275-extended-support-in-options-vector5.patch
|
Patch0578: 0578-ieee1275-extended-support-in-options-vector5.patch
|
||||||
Patch0579: 0579-Regenerate-kernelopts-if-missing-on-ppc.patch
|
Patch0579: 0579-Regenerate-kernelopts-if-missing-on-ppc.patch
|
||||||
Patch0580: 0580-kern-ieee1275-init-ppc64-Restrict-high-memory-in-pre.patch
|
Patch0580: 0580-kern-ieee1275-init-ppc64-Restrict-high-memory-in-pre.patch
|
||||||
|
Patch0581: 0581-util-Enable-default-kernel-for-updates.patch
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
Name: grub2
|
Name: grub2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.02
|
Version: 2.02
|
||||||
Release: 152%{?dist}
|
Release: 153%{?dist}
|
||||||
Summary: Bootloader with support for Linux, Multiboot and more
|
Summary: Bootloader with support for Linux, Multiboot and more
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
@ -510,6 +510,10 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 24 2023 Nicolas Frayer <nfrayer@redhat.com> - 2.02-153
|
||||||
|
- util: Enable default kernel for updates
|
||||||
|
- Resolves: #RHEL-4343
|
||||||
|
|
||||||
* Fri Oct 20 2023 Nicolas Frayer <nfrayer@redhat.com> - 2.02-152
|
* Fri Oct 20 2023 Nicolas Frayer <nfrayer@redhat.com> - 2.02-152
|
||||||
- kern/ieee1275/init: ppc64: Restrict high memory in presence
|
- kern/ieee1275/init: ppc64: Restrict high memory in presence
|
||||||
of fadump
|
of fadump
|
||||||
|
Loading…
Reference in New Issue
Block a user