-
Notifications
You must be signed in to change notification settings - Fork 304
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
rpm-ostree segfaults with kernel arguments with quotes in them while rebasing to a new version of a container image #3228
Comments
@lpuv Can you add information about which version of ostree/rpm-ostree you're using? Thanks
|
If on a BLS based bootloader (most people are, modern grub is this), one way you can do this is to just edit the BLS file and reboot to change cmdline (just be careful as usual when changing boot configuration to only edit the latest file so you have something to rollback to): /boot/loader/entries/ I really wish this API was as simple as this:
and no modifying individual kargs, because that parsing is hairy. If we revisit this PR and editing individual kargs @HuijingHei there are other karg parsers around like the recently retired https://github.com/rhboot/grubby :
|
Thanks @lpuv @ericcurtin for the report! Can reproduce this with
|
I was going to suggest this the first time, but I wonder if g_shell_parse_argv can be used. It's certainly had any bugs shaken out by now and does the quote stripping that's needed.
|
|
Additionally, when using my mitigation method the kernel boots with |
Related change in ostree is ostreedev/ostree#3208. Fixes: ostreedev/ostree#3228
Related change in ostree is ostreedev/ostree#3208. Fixes: ostreedev/ostree#3228
It looks good and convenient when using python, also write to file as expected (with quotes).
When using c, seems it strips the quotes, we might need condition to add
|
Related change in ostree is ostreedev/ostree#3208. Fixes: ostreedev/ostree#3228
Related change in ostree is ostreedev/ostree#3208. Fixes: ostreedev/ostree#3228
Related change in ostree is ostreedev/ostree#3208. Fixes: ostreedev/ostree#3228
Related change in ostree is ostreedev/ostree#3208. Fixes: ostreedev/ostree#3228
Related change in ostree is ostreedev/ostree#3208. Fixes: ostreedev/ostree#3228
Related change in ostree is ostreedev/ostree#3208. Fixes: ostreedev/ostree#3228
Relevant logs from systemd:
The kernel argument causing issues is:
acpi_osi="!Windows 2020"
This issue can be mitigated by removing the kernel argument using the editor, doing the rebase, and then adding it with
--append
Interestingly, when using append it will strip the quotes.
As requested, linking PR related: #3208
The text was updated successfully, but these errors were encountered: