Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1976267 Details for
Bug 2203203
Executing grub2-mkconfig breaks BLS snippets "options" line and $kernelopts is gone
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch v2
0001-grub-mkconfig-dont-overwrite-BLS-cmdline-if-BLSCFG.patch (text/plain), 2.38 KB, created by
Marta Lewandowska
on 2023-07-17 20:17:35 UTC
(
hide
)
Description:
patch v2
Filename:
MIME Type:
Creator:
Marta Lewandowska
Created:
2023-07-17 20:17:35 UTC
Size:
2.38 KB
patch
obsolete
>From a8831c4d3a467f874e2c7872d1b52ff990373b3f Mon Sep 17 00:00:00 2001 >From: Fedora Ninjas <grub2-owner@fedoraproject.org> >Date: Mon, 17 Jul 2023 16:03:39 -0400 >Subject: [PATCH] grub-mkconfig dont overwrite BLS cmdline if BLSCFG > >If GRUB_ENABLE_BLSCFG is true, running grub2-mkconfig will not >overwrite kernel cmdline in BLS snippets with what is in >GRUB_CMDLINE_LINUX in /etc/default/grub. Update can be forced by >sending new arg --update-bls-cmdline > >Signed-off-by: mkl <mlewando@redhat.com> >--- > util/grub-mkconfig.in | 9 +++++++++ > util/grub.d/10_linux.in | 2 +- > 2 files changed, 10 insertions(+), 1 deletion(-) > >diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in >index 520a672..34f7c13 100644 >--- a/util/grub-mkconfig.in >+++ b/util/grub-mkconfig.in >@@ -51,6 +51,7 @@ export TEXTDOMAIN=@PACKAGE@ > export TEXTDOMAINDIR="@localedir@" > > export GRUB_GRUBENV_UPDATE="yes" >+export GRUB_UPDATE_BLS_CMDLINE="yes" > > . "${pkgdatadir}/grub-mkconfig_lib" > >@@ -62,6 +63,7 @@ usage () { > echo > print_option_help "-o, --output=$(gettext FILE)" "$(gettext "output generated config to FILE [default=stdout]")" > print_option_help "--no-grubenv-update" "$(gettext "do not update variables in the grubenv file")" >+ print_option_help "--update-bls-cmdline" "$(gettext "overwrite BLS cmdline args with default args")" > print_option_help "-h, --help" "$(gettext "print this message and exit")" > print_option_help "-V, --version" "$(gettext "print the version information and exit")" > echo >@@ -100,6 +102,9 @@ do > --no-grubenv-update) > GRUB_GRUBENV_UPDATE="no" > ;; >+ --update-bls-cmdline) >+ bls_cmdline_update=true >+ ;; > -*) > gettext_printf "Unrecognized option \`%s'\n" "$option" 1>&2 > usage >@@ -167,6 +172,10 @@ fi > > eval "$("${grub_get_kernel_settings}")" || true > >+if [ "x${GRUB_ENABLE_BLSCFG}" = "xtrue" ] && [ "x${bls_cmdline_update}" != "xtrue" ]; then >+ GRUB_UPDATE_BLS_CMDLINE="no" >+fi >+ > if [ "x${GRUB_DISABLE_UUID}" = "xtrue" ]; then > if [ -z "${GRUB_DISABLE_LINUX_UUID}" ]; then > GRUB_DISABLE_LINUX_UUID="true" >diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in >index 4795a63..72b75ef 100644 >--- a/util/grub.d/10_linux.in >+++ b/util/grub.d/10_linux.in >@@ -265,7 +265,7 @@ if [ -z "\${kernelopts}" ]; then > fi > EOF > >- if [ "x${GRUB_GRUBENV_UPDATE}" = "xyes" ]; then >+ if [ "x${GRUB_UPDATE_BLS_CMDLINE}" = "xyes" ]; then > update_bls_cmdline > fi > >-- >2.39.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2203203
:
1974472
|
1976267
|
1982355