util: Regenerate kernelopts if missing on ppc
Resolves: #2051889 Signed-off-by: Nicolas Frayer <nfrayer@redhat.com>
This commit is contained in:
parent
69724fcb9f
commit
7a35ff39a8
36
0579-Regenerate-kernelopts-if-missing-on-ppc.patch
Normal file
36
0579-Regenerate-kernelopts-if-missing-on-ppc.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
From 8c74431327e0c7d7fe47462b0e69fcbe3bbac56e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Marta Lewandowska <mlewando@redhat.com>
|
||||||
|
Date: Fri, 24 Mar 2023 09:14:29 -0400
|
||||||
|
Subject: [PATCH] Regenerate kernelopts if missing on ppc
|
||||||
|
|
||||||
|
Signed-off-by: Marta Lewandowska <mlewando@redhat.com>
|
||||||
|
---
|
||||||
|
util/grub.d/10_linux_bls.in | 12 ++++++++++++
|
||||||
|
1 file changed, 12 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/util/grub.d/10_linux_bls.in b/util/grub.d/10_linux_bls.in
|
||||||
|
index 855dbdd..f2281bc 100644
|
||||||
|
--- a/util/grub.d/10_linux_bls.in
|
||||||
|
+++ b/util/grub.d/10_linux_bls.in
|
||||||
|
@@ -117,6 +117,18 @@ cat <<EOF
|
||||||
|
# This section was generated by a script. Do not modify the generated file - all changes
|
||||||
|
# will be lost the next time file is regenerated. Instead edit the BootLoaderSpec files.
|
||||||
|
|
||||||
|
+# The kernelopts variable should be defined in the grubenv file. But to ensure that menu
|
||||||
|
+# entries populated from BootLoaderSpec files that use this variable work correctly even
|
||||||
|
+# without a grubenv file, define a fallback kernelopts variable if this has not been set.
|
||||||
|
+#
|
||||||
|
+# The kernelopts variable in the grubenv file can be modified using the grubby tool or by
|
||||||
|
+# executing the grub2-mkconfig tool. For the latter, the values of the GRUB_CMDLINE_LINUX
|
||||||
|
+# and GRUB_CMDLINE_LINUX_DEFAULT options from /etc/default/grub file are used to set both
|
||||||
|
+# the kernelopts variable in the grubenv file and the fallback kernelopts variable.
|
||||||
|
+if [ -z "\${kernelopts}" ]; then
|
||||||
|
+ set kernelopts="root=${linux_root_device_thisversion} ro ${args}"
|
||||||
|
+fi
|
||||||
|
+
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.39.1
|
||||||
|
|
@ -576,3 +576,4 @@ Patch0575: 0575-Enable-shared-processor-mode-in-vector-5.patch
|
|||||||
Patch0576: 0576-efi-http-change-uint32_t-to-uintn_t-for-grub_efi_htt.patch
|
Patch0576: 0576-efi-http-change-uint32_t-to-uintn_t-for-grub_efi_htt.patch
|
||||||
Patch0577: 0577-ieee1275-Converting-plain-numbers-to-constants-in-Ve.patch
|
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
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
Name: grub2
|
Name: grub2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.02
|
Version: 2.02
|
||||||
Release: 150%{?dist}
|
Release: 151%{?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
|
||||||
|
* Mon Aug 28 2023 Nicolas Frayer <nfrayer@redhat.com> - 2.02-151
|
||||||
|
- util: Regenerate kernelopts if missing on ppc
|
||||||
|
- Resolves: #2051889
|
||||||
|
|
||||||
* Fri Jun 16 2023 Nicolas Frayer <nfrayer@redhat.com> - 2.02-150
|
* Fri Jun 16 2023 Nicolas Frayer <nfrayer@redhat.com> - 2.02-150
|
||||||
- kern/ieee1275/init: sync vec5 patchset with upstream
|
- kern/ieee1275/init: sync vec5 patchset with upstream
|
||||||
- Resolves: #2172111
|
- Resolves: #2172111
|
||||||
|
Loading…
Reference in New Issue
Block a user