Skip to content

fedora: split yamls#2266

Draft
supakeen wants to merge 9 commits intoosbuild:mainfrom
supakeen:split-yamls-for-fedora
Draft

fedora: split yamls#2266
supakeen wants to merge 9 commits intoosbuild:mainfrom
supakeen:split-yamls-for-fedora

Conversation

@supakeen
Copy link
Copy Markdown
Member

DRAFT BASED ON #2257

Work in progress.

avitova and others added 9 commits March 17, 2026 09:09
LoadImageTypes searches for all relevant files in the folder and adds
image type from each of those. Each image type can be defined only in
one file.
Image config field in the image types yaml is common for all image
types. It should be contained in the distro definitions. That way,
image types can just contain a definition of different types rather
than a common specific for all types.
Some data defined in imagetypes.yaml was not used at all, only defined
as an anchor. Removing blocks to make imagetypes yaml more simple.
The default_kernel_options was not used for fedora, and there was also a
typo. Removing it.
Adds a logic for prepending a file _common.yaml in front of other yaml
image types which allows splitting yaml files while keeping common
anchors.
We can't have duplicate keys in YAML files so with prepending of
`_common.yaml` we need a second arbitrary top-level key.

Perhaps we should just turn off being strict about what keys are allowed
at the top level? :)

Signed-off-by: Simon de Vlieger <cmdr@supakeen.com>
Split off the 'common' bits and the image types into two separate files.
Initially called `uncategorized`. Next commits will start splitting off
per-variant.

Signed-off-by: Simon de Vlieger <cmdr@supakeen.com>
An initial naive split of the YAML definitions; they are mostly split
along variant lines though some bits aren't quite right yet; those will
be addressed in clean-up commits after this one.

Signed-off-by: Simon de Vlieger <cmdr@supakeen.com>
Split out things from `_common.yaml` that are only relevant to
a specific variant (which now lives in its own file).

Signed-off-by: Simon de Vlieger <cmdr@supakeen.com>
@avitova avitova force-pushed the split-yamls-for-fedora branch from 05f37f9 to 6543e90 Compare March 17, 2026 08:09
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