Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stages/grub2: ability to not write kernel cmdline #939

Merged
merged 5 commits into from
Jan 6, 2022

Conversation

gicmo
Copy link
Contributor

@gicmo gicmo commented Dec 17, 2021

Currently we always write the kernel command line to the grubenv file, if only to include the root device. Starting with Fedora 33 and thus RHEL 9, the kernel command line included statically in the BLS snippets and the grubenv kernelopts variable not used. Instead one of the {/usr/lib,/etc}/kernel/cmdline files is read and the parameters in them used during the creation of the BLS snippets.
Therefore we add a new write_cmdline option that, if set to FALSE, will prevent us from writing the kernel command line.

Also check that the schema is valid for devices and mounts.
The uuid schema is duplicated in a few places. Extract it and use
references to it instead.
Currently we always write the kernel command line to the `grubenv`
file, if only to include the root device. Starting with Fedora 33
and thus RHEL 9, the kernel command line included statically in
the BLS snippets and the grubenv `kernelopts` variable not used.
Instead one of the {/usr/lib,/etc}/kernel/cmdline files is read
and the parameters in them used during the creation of the BLS
snippets.
Therefore we add a new `write_cmdline` option that, if set to
FALSE, will prevent us from writing the kernel command line.
In the fedora-boot manifest, do not write the kernel command line
to the `grubenv` file.
@teg teg merged commit 26a250c into osbuild:main Jan 6, 2022
@gicmo gicmo linked an issue Feb 22, 2022 that may be closed by this pull request
@gicmo gicmo deleted the grub_no_kernel_cmdline branch February 22, 2022 16:26
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.

stages/grub2: ability to not write kernel options to grubenv
2 participants