Skip to content

defs: allow templating filesystem partition labels - #2683

Merged
supakeen merged 1 commit into
osbuild:mainfrom
supakeen:label-templates
Sep 15, 2026
Merged

supakeen merged 1 commit into
osbuild:mainfrom
supakeen:label-templates

Conversation

@supakeen

Copy link
Copy Markdown
Member

Allow partition labels in YAML definitions to use Go templates with the distro ID as context (e.g. root_{{.Name}}{{.MajorVersion}}). This applies to both regular partition tables and partition table overrides.

I've kept the struct the same as what we (mostly) use in other places so we can eventually align all of these to use the "same" struct. However right now that doesn't make much sense since some templates are expanded at YAML load time and some at image build time which is a much bigger change to fix.

Allow partition labels in YAML definitions to use Go templates with the
distro ID as context (e.g. `root_{{.Name}}{{.MajorVersion}}`). This
applies to both regular partition tables and partition table overrides.

I've kept the struct the same as what we (mostly) use in other places so
we can eventually align all of these to use the "same" struct. However
right now that doesn't make much sense since some templates are expanded
at YAML load time and some at image build time which is a much bigger
change to fix.

Signed-off-by: Simon de Vlieger <[email protected]>
@supakeen
supakeen added this pull request to the merge queue Sep 15, 2026
Merged via the queue into osbuild:main with commit 530b726 Sep 15, 2026
55 of 56 checks passed
@supakeen
supakeen deleted the label-templates branch September 15, 2026 13:43
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