-
Notifications
You must be signed in to change notification settings - Fork 146
Switch bootc_kargs to use kernel_cmdline for parsing #1724
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
base: main
Are you sure you want to change the base?
Conversation
4196722 to
e28c0a1
Compare
|
Rebased on #1729, so this is pending getting that sorted out and merged first. |
e28c0a1 to
1c99086
Compare
|
Hooray for tests |
1c99086 to
3bd3694
Compare
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request is a nice refactoring to use a dedicated Cmdline type for kernel arguments instead of Vec<String>, which improves type safety and code clarity. The implementation is solid, introducing a new remove_exact method and updating various parts of the codebase to use the new type. I've found one bug in how root arguments are filtered and have a suggestion to reduce code duplication in the tests by using a helper function. Overall, great work on improving the codebase.
|
Also we should modify the upgrade integration test to include quoted kargs as in ostreedev/ostree#3544 which originally prompted all of this |
Signed-off-by: John Eckersberg <jeckersb@redhat.com>
Signed-off-by: John Eckersberg <jeckersb@redhat.com>
3bd3694 to
02b77cc
Compare
|
Ok good news is that cherry-picking the patch that modifies the upgrade test onto main reproduces the original problem where ostree aborts: |
This covers the issue reported in ostreedev/ostree#3544 Signed-off-by: John Eckersberg <jeckersb@redhat.com>
02b77cc to
ed5b166
Compare
Had this working earlier this afternoon but broke it in rebase somehow. Time for halloween festivities but wanted to throw it up incase my laptop is hit by a meteor over the weekend.