-
Notifications
You must be signed in to change notification settings - Fork 719
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Extend bls_entries_options to check for runtime and $kernelopts #5887
Extend bls_entries_options to check for runtime and $kernelopts #5887
Conversation
If a boot entry has the kernel option, it is fine. If a boot entry doesn't have the kernel option, make sure that the entry has '$kernelopts' and /boot/grub2/grubenv has the kernel option.
Add checks to ensure that kernel updates or execution of grub2-mkconfig won't remove "required" kernel options from /boot/grub2/grubenv
7dedcd6
to
21016d2
Compare
Okay, I have just one question: why you are adding all this GRUB2-related specifics into the My point is that I think that checking grub2 configuration here is as irrelevant as, for example, checking some zipl configuration. It would be an abomination template for the single purpose of having just one |
That template does not address BLS, which should be the preferred method for RHEL8.
BLS unifies the boot configuration format, but (AFAIK) the way bootloaders update the kernel and carry forward these options is not unified. And the rule should also ensure that kernel updates don't lead the system out of compliance.
So far the templates have been pretty much shared, do we have a template exclusive to one product?
Maybe, what is the alternative?
The template can have checks for the arch/bootloader and just perform the BLS check. |
My vision of ideal is to have We can of course have
Why this is a problem? |
I think it is more about the configuration format than the actual bootloader used. About template I understand the concern that this single template can become complex. But at the same time I'd like to avoid having too many templates for kernel options. I will move forward with multiple templates, and see how it goes.
This is not a strong blocker for me, I'm mainly concerned about number of "duplicate" rules that can get into the scene if we consider other settings and other bootloaders. |
Description:
/proc/cmdline
)$kernelopts
/boot/loader/entries/*.conf
, but rather be defined by$kernelopts
which are sourced via/boot/grub2/grubenv
./boot/grub2/grubenv
will retain the configured kernel options.grub2-mkconfig
or kernel update may update/boot/grub2/grubenv
and strip kernel options away if they are not set in/etc/default/grub
(GRUB_CMDLINE_LINUX
).