Skip to content

Add ability to render our own kargs in container #1827

@jeckersb

Description

@jeckersb

Right now in the composefs build test/example flow, we are hardcoding the kargs that are injected into the UKI. However we need to properly render the kargs given the context of the contents of the container image, and also let users supply additional kargs and merge them the same way one would do with the bootc install flow. This is a prerequisite to generating the full UKI since we need to know this ahead of time, the same that we need to know the composefs fsverity hash.

This should be something like (naming bikesheddable):

bootc container render-kargs --additional-kargs "foo bar=baz"

This will print the kargs to stdout the same way it would be added to the cmdline in the normal bootc install. So this would also take into account things like installconfig, kargs.d, etc.

One outstanding question is what to do about the "root filesystem" kargs from the install flow? I guess we just ignore that in this case, since we're running in an arbitrary container and don't have the final root filesystem available for introspection. Will that cause any problems down the line?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions