Skip to content

Conversation

lukewarmtemp
Copy link
Contributor

Required for #401

Adds a EnvProperties struct to allow for conditional merging of kargs depending on whether the archiecture matches. Future properties such as platform.id can be added in the future.

Signed off: Luke Yang luyang@redhat.com

@lukewarmtemp lukewarmtemp force-pushed the merge-env-properties branch from 8d72f1a to 22eea93 Compare May 27, 2024 15:37
@lukewarmtemp lukewarmtemp force-pushed the merge-env-properties branch from 22eea93 to 8e31857 Compare May 28, 2024 14:37
@lukewarmtemp lukewarmtemp changed the title Pass env properties to merge function install: Add support for architecture filtering for kargs May 28, 2024
@lukewarmtemp lukewarmtemp force-pushed the merge-env-properties branch from 8e31857 to 03cedb6 Compare May 28, 2024 14:57
@lukewarmtemp lukewarmtemp force-pushed the merge-env-properties branch from 03cedb6 to f57e312 Compare May 28, 2024 17:37
@lukewarmtemp lukewarmtemp requested a review from cgwalters May 28, 2024 17:37
Copy link
Collaborator

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

Thanks! This is looking pretty close, just a nit on code duplication, and would you mind updating the docs on this?

The use case here is that some kernel arguments are architecture
specific, such as the `console=` kargs. This allows a generic base
image to default to including arch-specific values post install.

`EnvProperties` struct to allow for conditional merging of kargs
depending on whether the archiecture matches. Future properties such as
`platform.id` can be added in the future.

Signed-off-by: Luke Yang <luyang@redhat.com>
@lukewarmtemp lukewarmtemp force-pushed the merge-env-properties branch from f57e312 to cdeadb9 Compare May 28, 2024 18:17
@lukewarmtemp lukewarmtemp requested a review from cgwalters May 28, 2024 18:18
@cgwalters cgwalters merged commit 282ec39 into bootc-dev:main May 28, 2024
cgwalters added a commit to cgwalters/bootc that referenced this pull request Nov 5, 2024
cgwalters pushed a commit to cgwalters/bootc that referenced this pull request Nov 6, 2024
encapsulate: Support setting arbitrary container config
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