-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bootloader: Simplify tuning of rpm-ostree kargs
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
- Loading branch information
Showing
2 changed files
with
45 additions
and
110 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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