-
Notifications
You must be signed in to change notification settings - Fork 146
kargs: correctly split kernel command-line string with quoted arguments #1712
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
Splitting the kernel command-line on whitespace breaks quoted arguments, e.g., "dyndbg=\"file drivers/base/firmware_loader/main.c +fmp\"". Use the bootc_kernel_cmdline crate to parse and split kernel arguments, which unbreaks deployment when a quoted kernel argument is present. Closes: ostreedev/ostree#3544 Signed-off-by: Peter Colberg <[email protected]>
|
While this resolves the issue, we may want to pass around the kernel command-line as |
Yeah there's a few uses of |
It may not be a backcompact change but I'd probably say it should be an error to put something in the bootc |
|
Please feel free to overwrite my branch any time, as it will take me a while to return to this. |
Working on it now, should have something soon. |
👍 this will require tweaking kernel_cmdline a bit though, since right now |
|
It also occurs to me now that I have it close to working that the kernel_cmdline crate needs to be reworked a bit to allow duplicated parameters. For example, |
|
Hmmmm we really didn't support that? That seems like a big oversight |
Well it would work if the data you fed into it already had the duplicate keys. So Fortunately a simple fix, just need to add a new |
Splitting the kernel command-line on whitespace breaks quoted arguments, e.g., "dyndbg="file drivers/base/firmware_loader/main.c +fmp"".
Use the bootc_kernel_cmdline crate to parse and split kernel arguments, which unbreaks deployment when a quoted kernel argument is present.
Closes: ostreedev/ostree#3544