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

install: Add support for architecture filtering for kargs #567

Merged
merged 1 commit into from
May 28, 2024

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 [email protected]

@lukewarmtemp lukewarmtemp changed the title Pass env properties to merge function install: Add support for architecture filtering for kargs May 28, 2024
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?

lib/src/install/config.rs Outdated Show resolved Hide resolved
lib/src/install/config.rs Outdated Show resolved Hide resolved
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 <[email protected]>
@cgwalters cgwalters merged commit 282ec39 into containers:main May 28, 2024
12 checks passed
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