Skip to content

Use grubby to update kernel command line arguments - #511

Open
mihaelabalutoiu wants to merge 1 commit into
cloudbase:masterfrom
mihaelabalutoiu:add-grubby-kernel-opts
Open

Use grubby to update kernel command line arguments#511
mihaelabalutoiu wants to merge 1 commit into
cloudbase:masterfrom
mihaelabalutoiu:add-grubby-kernel-opts

Conversation

@mihaelabalutoiu

Copy link
Copy Markdown
Member

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. On RHEL 10, kernel arguments are managed through /boot/loader/entries, and grub2-mkconfig does not propagate the updated options there.

This PR implements the following:

  • Uses grubby --update-kernel=ALL to update kernel arguments on BLS-based systems.
  • Falls back to the existing grub2-mkconfig logic when grubby is not available.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant