-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kargs: run
delete-if-present
and append-if-missing
failed
when there is existing `key` Revert part of 1a1ef13 `ostree_kernel_args_delete_if_present()` calls `ostree_kernel_args_contains()` which only looks at the `key` part, which makes `delete-if-present` failed when there is existing `key`. `append-if-missing` will hit the same problem. ``` ]# rpm-ostree kargs --append=crashkernel=1G ]# rpm-ostree kargs ... crashkernel=1G ]# rpm-ostree kargs --unchanged-exit-77 --delete-if-present=crashkernel=auto error: No karg 'crashkernel=auto' found ]# rpm-ostree kargs --unchanged-exit-77 --append-if-missing=crashkernel=auto No changes. ``` And fix corner case when `append` and `append-if-missing` with the same value which will append twice. Fixes: #4718
- Loading branch information
1 parent
6a61574
commit cdd56d6
Showing
2 changed files
with
30 additions
and
4 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