Repository navigation
Use grubby to update kernel command line arguments - #511
Open
mihaelabalutoiu wants to merge 5 commits into
Open
mihaelabalutoiu wants to merge 5 commits into
mihaelabalutoiu wants to merge 5 commits into
Conversation
Dany9966
requested changes
Aug 31, 2026
mihaelabalutoiu
marked this pull request as draft
September 4, 2026 07:08
mihaelabalutoiu
force-pushed
the
add-grubby-kernel-opts
branch
2 times, most recently
from
September 8, 2026 13:34
17e0300 to
f6177de
Compare
mihaelabalutoiu
marked this pull request as ready for review
September 9, 2026 09:47
fabi200123
reviewed
Sep 11, 2026
Dany9966
requested changes
Sep 25, 2026
mihaelabalutoiu
force-pushed
the
add-grubby-kernel-opts
branch
from
September 29, 2026 12:10
f6177de to
a56f89f
Compare
Dany9966
requested changes
Sep 30, 2026
Removes cmdline entries with `grubby --remove-args` semantics: a bare name drops the argument whichever value it holds, a name/value pair drops it only on an exact match. Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Use `grubby --update-kernel=ALL` to update kernel arguments on BLS-based systems such as RHEL 10, where `grub2-mkconfig` does not propagate them to `/boot/loader/entries`. Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Existing `name=value` arguments are parsed as `key_val`, so appending them as `single` values duplicated them. Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
mihaelabalutoiu
force-pushed
the
add-grubby-kernel-opts
branch
from
October 1, 2026 12:31
a56f89f to
dd9a33a
Compare
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Member
Author
|
I've made all the changes, please take a look now. Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Failing to update the kernel console options breaks text console functionality on affected platforms.
The issue is caused by BLS being enabled by default in
/etc/default/grub. OnRHEL 10, kernel arguments are managed through/boot/loader/entries, andgrub2-mkconfigdoes not propagate the updated options there.This PR implements the following:
Grub2ConfigEditor.remove_from_option, withgrubby --remove-argssemantics: a bare name drops the argument whichever value it holds, a name/value pair drops it only on an exact match._update_kernel_cmdline_argsto the baseOSMorphingtools, editing bothGRUB2cmdline options throughGrub2ConfigEditor. Debian and SUSE each had their own copy of these edits and now share this one.grubby --update-kernel=ALL, which reaches the BLS boot entries.