Skip to content

many: bootc deployment variants - #2636

Merged
lucasgarfield merged 3 commits into
osbuild:mainfrom
supakeen:bootc-variants
Sep 21, 2026
Merged

lucasgarfield merged 3 commits into
osbuild:mainfrom
supakeen:bootc-variants

Conversation

@supakeen

@supakeen supakeen commented Sep 1, 2026

Copy link
Copy Markdown
Member

Implementation of #2566; I've left the path to be under /usr/lib/image-builder/bootc as I don't want to change the path again and we don't have a use case for package based trees yet.

Commits should be self explanatory see the issue for the reasoning.

@lucasgarfield lucasgarfield left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pretty easy for me to follow so I suppose that means it's pretty nice. 😅

Only one real concern.

I could imagine a bit more test coverage but am not yet up to speed on the repo's conventions so I'm not asking for extra coverage - I'd be curious for you to comment on it, though, just for my own information.

Comment thread pkg/bib/osinfo/osinfo.go Resolved
Comment thread pkg/bib/osinfo/osinfo.go Resolved
@supakeen

supakeen commented Sep 2, 2026

Copy link
Copy Markdown
Member Author

I could imagine a bit more test coverage but am not yet up to speed on the repo's conventions so I'm not asking for extra coverage - I'd be curious for you to comment on it, though, just for my own information.

What test coverage would you like to see? It has a bunch of unit tests for the variant YAML finding but no actual build tests.

Integration tests on the manifest generation? To /me/ it feels like overkill but I am known to avoid them :)

Comment thread cmd/image-builder/cmd.go Resolved
@supakeen

supakeen commented Sep 4, 2026

Copy link
Copy Markdown
Member Author

Drafting this until #2648 and #2649 land.

@supakeen
supakeen marked this pull request as draft September 4, 2026 07:57
@supakeen
supakeen marked this pull request as ready for review September 4, 2026 12:46
@supakeen

supakeen commented Sep 4, 2026

Copy link
Copy Markdown
Member Author

@lucasgarfield / @achilleas-k I've rebased this now on the other PRs and we now check only a single prefix.

@supakeen
supakeen requested a review from achilleas-k September 4, 2026 12:47
@supakeen

supakeen commented Sep 16, 2026 •

Copy link
Copy Markdown
Member Author

Could someone take a look at this one? I've rebased it due to conflicts just now.

Add deployment variant support to osinfo config loading. When a variant
name is provided we look in `<prefix>/variant.d/<name>` and fall back to
the default path if it doesn't exist. See [1].

[1]: osbuild#2566

Signed-off-by: Simon de Vlieger <[email protected]>
Variant parameter for `Container.ResolveInfo()` and
`ResolveBootcInfo()`. Also allow for resolving available variants from a
given container reference.

Signed-off-by: Simon de Vlieger <[email protected]>
Allow passing `--bootc-variant` to `bootc` relevant commands to select a
variant. Also add `bootc variants` to list variants available in a given
reference.

Signed-off-by: Simon de Vlieger <[email protected]>

@achilleas-k achilleas-k left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Skimmed the commits and re-reviewed the changes since last time. Sorry I left this hanging.

LGTM!

@lucasgarfield lucasgarfield left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

@lucasgarfield
lucasgarfield added this pull request to the merge queue Sep 21, 2026
Merged via the queue into osbuild:main with commit 5a8072e Sep 21, 2026
54 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.

3 participants