Skip to content

Commit

Permalink
install: Add support for architecture filtering for kargs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lukewarmtemp committed May 28, 2024
1 parent 5aea3ca commit cdeadb9
Show file tree
Hide file tree
Showing 2 changed files with 255 additions and 23 deletions.
1 change: 1 addition & 0 deletions docs/src/man-md/bootc-install-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The `install` section supports two subfields:
The first value specified will be the default. To enable both, use `block = ["direct", "tpm2-luks"]`.
- `filesystem`: See below.
- `kargs`: An array of strings; this will be appended to the set of kernel arguments.
- `match_architectures`: An array of strings; this filters the install config.

# filesystem

Expand Down
Loading

0 comments on commit cdeadb9

Please sign in to comment.