Skip to content
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

prairiedog: allow '=' in bootconfig values #2806

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

bcressey
Copy link
Contributor

Issue number:
N/A

Description of changes:
'=' is allowed in values, so constrain the split accordingly.

This fixes inputs like a dm-mod.create parameter that refers to the target block device with the PARTUUID=.../PARTNROFF=# syntax.

Testing done:
I found this while trying to use a corrupted dm-mod.create parameter in settings.boot, which caused a boot failure when prairiedog attempted to parse /proc/bootconfig.

I've confirmed that this fix solves that problem and that the new unit test passes.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

'=' is allowed in values, so constrain the split accordingly.

This fixes inputs like a `dm-mod.create` parameter that refers to the
target block device with the `PARTUUID=.../PARTNROFF=#` syntax.

Signed-off-by: Ben Cressey <bcressey@amazon.com>
Copy link
Member

@markusboehme markusboehme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@bcressey bcressey merged commit 15e99bd into bottlerocket-os:develop Feb 15, 2023
@bcressey bcressey deleted the prairiedog-split branch February 15, 2023 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants