Skip to content

osinfo: read blueprints from variants - #2754

Merged
supakeen merged 1 commit into
osbuild:mainfrom
supakeen:blueprint-variants
Oct 9, 2026
Merged

supakeen merged 1 commit into
osbuild:mainfrom
supakeen:blueprint-variants

Conversation

@supakeen

@supakeen supakeen commented Oct 9, 2026

Copy link
Copy Markdown
Member

Use the blueprint.* name as preferred over config.*, read from variant paths (same as disk.yaml and iso.yaml) and document the availability.

@supakeen
supakeen requested a review from a team as a code owner October 9, 2026 11:57
Use the `blueprint.*` name as preferred over `config.*`, read from
variant paths (same as `disk.yaml` and `iso.yaml`) *and* document the
availability.

Signed-off-by: Simon de Vlieger <cmdr@supakeen.com>
@croissanne

Copy link
Copy Markdown
Member

Rebased to make it green.

@croissanne croissanne 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.

lgtm, thanks!

Comment thread pkg/bib/osinfo/osinfo.go
config, err = blueprintload.LoadFS(fsys, path.Join(prefix, "config.toml"))
if err != nil && !os.IsNotExist(err) {
return nil, err
func readImageCustomization(fsys fs.FS, prefix, variant string) (*blueprint.Customizations, error) {

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.

Not at all a blocker, but I wonder if it could throw an error or warning for ignored blueprint entries/customizations here.

@supakeen
supakeen enabled auto-merge October 9, 2026 16:36
@supakeen
supakeen added this pull request to the merge queue Oct 9, 2026
Merged via the queue into osbuild:main with commit dd0e7d9 Oct 9, 2026
49 of 55 checks passed
@supakeen
supakeen deleted the blueprint-variants branch October 9, 2026 17:25
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