Skip to content

Conversation

@jeckersb
Copy link
Collaborator

See individual commits, these are things that came up as I was switching over composefs-boot to use bootc-kernel-cmdline. Leaving as draft for now since the composefs-boot side is still WIP so this may change.

We already impl AsRef<str> but this just makes it more convenient to
render the command line for users.

Signed-off-by: John Eckersberg <[email protected]>
There's no reason these need to be owned.

Signed-off-by: John Eckersberg <[email protected]>
The (now-named) parse_one method is not particularly useful outside of
`CmdlineIter`.  Almost always end users don't care about extra
unparsed content, they just want the `Option<Parameter>`.

This greatly improves ergnomics for users so they can create
parameters like...

`Parameter::parse("foo=bar").unwrap()`

... knowing at the call-site that "foo=bar" is a valid parameter so
the `unwrap()` is safe.

Signed-off-by: John Eckersberg <[email protected]>
@jeckersb jeckersb marked this pull request as ready for review September 15, 2025 13:40
@bootc-bot bootc-bot bot requested a review from henrywang September 15, 2025 13:40
@jeckersb
Copy link
Collaborator Author

Gonna go ahead and merge this, if there's anything else that comes up on the composefs-boot side we can do a followup

@jeckersb jeckersb merged commit 86f1157 into bootc-dev:main Sep 15, 2025
62 checks passed
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.

2 participants