-
Notifications
You must be signed in to change notification settings - Fork 190
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
bootloader: Simplify tuning of rpm-ostree kargs #690
base: master
Are you sure you want to change the base?
Conversation
d6801e7
to
f9f5e9e
Compare
There is an older grub convention that TuneD cannot change/delete any karg it didn't add itself, so I think this restriction is OK. One question, what happen if there is running deployment or the |
I will re-check that, can't remember if I tested such cases or not, thanks. |
Is the behaviour the same? |
Looking at it now, I likely factored out that code by accident. I will add it back. |
The bootloader plugin claims that it does not mess with existing kernel parameters; make sure we adhere to that also for rpm-ostree systems: 1. Only append a new karg if the same key=value pair does not already appear in kernel parameters. If we would duplicate it, it would not be possible to determine which one to delete when unapplying the profile. 2. Do not delete existing key=value pairs when the profile adds a karg with another value for the key. A single key can appear multiple times in the kernel parameter list with different values. Also make sure new kargs are added exactly in the order in which they appear in the profile. This is especially important for kargs related to hugepages. Resolves: RHEL-45836
f9f5e9e
to
879323d
Compare
Updated the code to handle errors better and re-added the wait until rpm-ostree becomes idle. |
This PR aims to simplify the tuning of kernel parameters in rpm-ostree systems, which has some major flaws:
The new implementation is much simpler, but it also restricts the user more, since it disallows replacing existing kernel parameters.
Setting to WIP, since I'm still doing testing on Fedora CoreOS virtual machines.