-
Notifications
You must be signed in to change notification settings - Fork 197
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
kargs: Support --append and --delete simultaneously #1940
kargs: Support --append and --delete simultaneously #1940
Conversation
Code I wrote for the machine-config-operator expected it to work, and I don't see a reason not to support it. See openshift/machine-config-operator#1265
@cgwalters this PR itself looks fine to me, however I have some concerns on the MCO logic. In particular, I fear that a delete+append will end up re-ordering the kargs as a side-effect. In some cases (like hugepages) the relative order between arguments seems to be relevant, see https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/virtualization_tuning_and_optimization_guide/sect-virtualization_tuning_optimization_guide-memory-huge_pages-1gb-runtime. |
@lucab I can see that
So this PR will not ruin the order, because it already ruined, |
See ostreedev/ostree#1859 for ordering. |
I think clearly in the general case what the MCO really wants to do is be "stateless" by simply resetting the kernel args to default, then appending the ones it wants. I.e. it should work the same way that ostree handles package layering (check out pristine new FS, apply changes). However, this gets into the issue of "default" kargs ostreedev/ostree#479 |
Which isn't in a libostree release yet; need to do one and get it out there, and then we can verify that the rpm-ostree side kargs logic all works with this too. That said, I agree with
Let's merge this to fix up the MCO, then revisit the more general problem later, in particular default kargs? |
@cgwalters A lot of thanks for the information, when can we expect a new release of |
/lgtm |
/lgtm That said, looks like we have some CI issues:
Ahh OK, looks like the cosa buildroot hasn't been updated in a while so it's still at f30. I started a new build now. Seems like the trigger isn't working. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, jlebon, lucab The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
Code I wrote for the machine-config-operator expected it to
work, and I don't see a reason not to support it.
See openshift/machine-config-operator#1265