Repository navigation
distro: move disk/container image types into pure YAML (COMPOSER-2533) - #1508
Conversation
achilleas-k
left a comment
There was a problem hiding this comment.
Generally, LGTM. Some questions and comments inline.
Not approving because of the commit message that needs fixing (InstallerConfig) and my question about the FileNode struct and yaml format.
Also, I didn't check each line of the conversions to yaml in detail. I trust the manifest checksums will take care of validating that.
| os: | ||
| - *minimal_raw_pkgset | ||
| installer: | ||
| - &anaconda_pkgset |
There was a problem hiding this comment.
We're going to have to do something to make these package set names easier to work with without needing to read code or understand the internals. I've been thinking about this for a bit and I keep alternating between two ideas:
- Match them up with pipeline names and make pipeline names discoverable externally. This could be in the form of developer tooling, a command that can output the general form of a manifest (pipeline names and list of stages).
- Have specific names for each package set based on their purpose, like we have now, but document it well. Generic names like "os" and "installer" are nice and clear, but I think they also give a false sense of guessability. For example, will adding a "build" package set affect the build packages? It might be better to give these explicit, project-specific names in reverse-DNS form (org.osbuild.packages.os, org.osbuild.packages.installer?). I think something like that would make it very clear that these package set names aren't arbitrary, have special meaning internally, and should be referenced somewhere.
There was a problem hiding this comment.
Yeah, that is an important topic, especially when we invite outsider to write defintions. It seems right now we only have "os", "installer" and "container". Theere are also "build" and "blueprint" but (AFAICT? am I missing something?) those are unused.
The "os" and "installer" look pretty clear, the "container" one is a bit ambiguous but we could either rename or just document it, having three documented ones seems ok (especially since "container" is a bit of a niche one because (again AIUI) its only relevant for iot images types which will be phased out in favor of bootc).
There was a problem hiding this comment.
Not particularly fond of "FQDN"s. We can visit this problem once we're also ready to split out the pipelines a bit more (e.g. separate customization pipeline, etc).
| type baseFsNodeJSON struct { | ||
| Path string | ||
| Mode *os.FileMode | ||
| User interface{} | ||
| Group interface{} | ||
| } | ||
|
|
||
| type baseFsNode struct { | ||
| path string | ||
| mode *os.FileMode | ||
| user interface{} | ||
| group interface{} | ||
| baseFsNodeJSON | ||
| } |
There was a problem hiding this comment.
I'm having a bit of trouble understanding the reason for this change. Is it impossible (or messy) to do the unmarshalling into the File struct without the nesting?
Could we change the two fsnodes so that they can be unmarshalled unambiguously? Or perhaps we could have a slightly different serialised format from the internal?
There was a problem hiding this comment.
Sorry, the commit message should probably be better here. The reason I did it this way is simply that there is already a "File.Path()" function. So just unmarshaling into "File" would require to rename the function and add an exported "File string". I did this in #1497 but the downside of this appraoch is that its now trvial to create invalid node because there is no getters/setters anymore. The original simple map based approach was also not much liked (#1479) and the approach used here (originally from #1500) got the most love so far. But happy to look into more directions here if there are new ideas (fwiw, I can open this one separtely again if you feel it would benefit from a more targeted discussion).
There was a problem hiding this comment.
Thanks. The explanation clarifies everything (I didn't connect it to the previous versions and I missed some of the discussion on those PRs).
I think the current solution is fine. The only alternative I can think of is to basically disconnect the two, so unmarshal into baseFsNodeJSON and then copy everything to baseFsNode for internal use. But that's pretty much the same effort and amount of code probably.
There was a problem hiding this comment.
Yeah, they are probably about the same. I /think/ I even had a version with a baseFsNodeJSON and that copied into baseFsNode - I don't remember why I decided on this in the end. I don't think go has a really nice pattern for this :/
This commit changes the defs.PackageSet loader to return the full map of all static package sets defined for the pipelines. This is needed when we want to move all of the image types into YAML. We currently define in code what image types load from os, container or installer pipelines but that does not translate to pure YAML. This maps "pkgsKey" to their package sets. The map key here is a string that can either be: - "os": packages for the os - "installer": packages for the installer - "container": extra package into an iot container - "blueprint": unused AFAICT - "build": unused AFAICT Note that this does not directly maps to pipeline names but we should look into making it so. Cleanup of osbuild#1291
This commit is very mechnical. It updates the package sets that used to be "flat" into a map. For most image types this just means adding "os" but for some (like the installers) it adds the second pipeline.
This commit adds a YAML `environment.EnvironmentConf` that implements the `environment.Environment` inteface so that we can define environments inside out image definition YAML.
The previous code was panic()ing on invalid input. This is no longer an option as we will define platforms in YAML and here we need to be able to handle incorrect input more gracefully than a panic. The callers are also updated.
The error so far could be more helpful, so far we do: ``` unsupported architecture ``` instead we now error with the unsupported architecture as part of the error message. ``` unsupported architecture <unsupported-arch> ```
We will define the platform in YAML so we need a way to unmarshal the architecture (that is part of the platform).
This commit adds a new platform called `PlatformConf` that implements `platform.Platform` but is fully configured from YAML.
When validating paths in the fsnode module, use the `filepath` module instead of the (more generic) `path`.
When we move `ImageConfig` into YAML we will need support for
`fsnode.{Dir,File}` as it is used as part of the ImageConfig.
This commit adds support for JSON/YAML unmarshaling.
This commit adds a new `defs.ImageConfig()` to load per image
type specific image config loading. This allows to write:
```yaml
image_types:
test_type:
image_config:
locale: "C.UTF-8"
timezone: "DefaultTZ"
condition:
version_less_than:
"2":
timezone: "OverrideTZ"
```
This commit moves the `ImageConfig` of each package into the distro.yaml.
This commit adds support to load the full image types definition directly from YAML. Note that this does not (yet) implement the `distro.ImageType` interface, it just provides the ability to load the base information about the image type and then the imageTypeYAML needs to be converted into the "native" fedora/rhel image type. This will change in a subsequent refactor and there will be only a single (yaml based) image type implementation.
We have a bunch of image types like `server-qcow2`. In our YAML those are written as `server_qcow2` to avoid having to quote them. Noralize the names on load (i.e. "_" -> "-").
We have a bunch of alias names for the image types now, ensure this is properly supported by the image yaml.
This commits adds the ability to load image types fully from YAML and moves the `container` type into pure YAML as the first example.
This commit moves the fedora/{qcow2,vhd,oci,openstack} image
types entirely into YAML and remove the mkQcow2ImgType code.
|
Something broke. |
This commit moves the fedora/minimal-raw-{xz,zst} image
types entirely into YAML and remove the mkMinimalRawImgType
code.
The minimal-raw-zst did not get the right overrides initially.
This commit fixes this.
This commit moves the fedora/{vmdk,ova} image
types entirely into YAML and remove the mkVmdkImgType()
code.
This commit moves the fedora/wsl image types entirely into YAML and remove the mkWslImgType() code.
This commit adds YAML based InstallerConfig reading via a
new `installer_config` key. E.g.
```yaml
image_types:
test_type:
installer_config:
additional_dracut_modules:
- base-dracut-mod1
additional_drivers:
- base-drv1
```
Initially arch,distro_name, version_less_than as conditions
are supported. Overrides fully override, there is no "smartz"
or merging. When multiple conditions are given the order
is implenentation specific, we should not allow this (for now).
This commit constraints the conditions for the InstallerConfig
to one for now. If multiple ones are used an error is raised.
We can relax this later but we need to think what it means,
right now if multiple conditions are used and multiple would
be meet the order of the implementation would decide which
one is taken.
Take this YAML:
```yaml
image_types:
test_type:
installer_config:
additional_dracut_modules:
- base-dracut-mod1
additional_drivers:
- base-drv1
condition:
version_less_than:
"2":
additional_dracut_modules:
- override-dracut-mod1
distro_name:
"test-distro":
additional_dracut_modules:
- other-override-dracut-mod1
```
here it is not clear what to do if both the "version" and
"distro_name" condition are meet at the same time. Should we
merge? Was this a mistake by the user? Should one take precedence?
To avoid having to answer this now add this error.
Note that we have a similar quesiton in ImageConfig and there
the `distro_name` takes precdence currently because it's
expedient for rhel/centos (as the centos version is always 9.0
so version_less_than is problematic here). A way out might be
that version_less_than would need a distro prefix?
This commit moves the InstallerConfig into YAML and remove the defaultDistroInstallerConfig() helper from the code.
This commit adds support for all used image functions so that the `image_func: <value>` for a new image type provides all that is supported by the fedora image functions. This includes: image_installer, live_installer, bootable_container, iot, iot_installer, iot_simplified_installer
This commit removes the name mangling/normalizations that we had in the image definition loader, i.e we drop the "-" -> "_" replace. This also requires updating all the YAMLs. Thanks to Achilleas for suggesting this.
This commit drops the no longer used initialSetupKickstart() function. This is part of the YAML now.
| type baseFsNodeJSON struct { | ||
| Path string | ||
| Mode *os.FileMode | ||
| User interface{} | ||
| Group interface{} | ||
| } | ||
|
|
||
| type baseFsNode struct { | ||
| path string | ||
| mode *os.FileMode | ||
| user interface{} | ||
| group interface{} | ||
| baseFsNodeJSON | ||
| } |
There was a problem hiding this comment.
Thanks. The explanation clarifies everything (I didn't connect it to the previous versions and I missed some of the discussion on those PRs).
I think the current solution is fine. The only alternative I can think of is to basically disconnect the two, so unmarshal into baseFsNodeJSON and then copy everything to baseFsNode for internal use. But that's pretty much the same effort and amount of code probably.
|
I cloned this PR locally to poke around some of the YAML files and noticed some trailing whitespace on some lines. Since we're going all in on YAML, we should eventually add yamllint to our PR checks to keep things clean. |
Thanks, that is an excellent point. I added a yamllint check in #1514 (and fixed the issues of course) |
| - "coreos.no_persist_ip" | ||
|
|
||
| environments: | ||
| kvm: &kvm_env |
There was a problem hiding this comment.
Followup: Consistency wise, should this key be called kvm_env?
| lock_root_user: true | ||
|
|
||
| disk_sizes: | ||
| default_required_partition_sizes: &default_required_dir_sizes |
There was a problem hiding this comment.
Followup: Anchor name should probably be &default_required_partition_sizes?
tag v0.145.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.145.0 ---------------- * github: run dependabot gomod action weekly (osbuild/image-builder#1476) * Author: Achilleas Koutsou, Reviewers: Lukáš Zapletal — Somewhere on the Internet, 2025-05-12 --- tag v0.146.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.146.0 ---------------- * Fixes for ESP partition: Make optional, set label (osbuild/image-builder#1525) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Brian C. Lane * Initial automotive work: custom selinux policy, separate build container for bootc, and ext4 verity (osbuild/image-builder#1519) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Simon de Vlieger * Update snapshots to 20250512 (osbuild/image-builder#1515) * Author: SchutzBot, Reviewers: Achilleas Koutsou, Simon de Vlieger * disk: make auto-generated /boot 1 GiB big (osbuild/image-builder#1499) * Author: Ondřej Budai, Reviewers: Achilleas Koutsou, Michael Vogt * distro.yaml: Clean up yamllint errors and warnings (osbuild/image-builder#1523) * Author: Brian C. Lane, Reviewers: Michael Vogt, Simon de Vlieger * distro/rhel9: make /boot 1 GiB everywhere (osbuild/image-builder#1498) * Author: Ondřej Budai, Reviewers: Michael Vogt, Simon de Vlieger * distro: move disk/container image types into pure YAML (COMPOSER-2533) (osbuild/image-builder#1508) * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Simon de Vlieger * fedora: move all image types into pure YAML (osbuild/image-builder#1514) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger * fsnode: fix go-1.24 errors (osbuild/image-builder#1521) * Author: Michael Vogt, Reviewers: Ondřej Budai, Tomáš Hozza * osbuild: add JSON/YAML unmarshal to UdevRulesStageOptions (osbuild/image-builder#1489) * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Simon de Vlieger * test: Run more distro tests in parallel (osbuild/image-builder#1483) * Author: Brian C. Lane, Reviewers: Michael Vogt, Simon de Vlieger — Somewhere on the Internet, 2025-05-19 --- tag v0.147.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.147.0 ---------------- * Add support for setting partition uuid and label (osbuild/image-builder#1543) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Simon de Vlieger * Cleanup of new APIs (mkfs options and build container) (osbuild/image-builder#1526) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Simon de Vlieger * distro/rhel: remove the user/group warnings for edge-commits (osbuild/image-builder#1538) * Author: Achilleas Koutsou, Reviewers: Brian C. Lane, Simon de Vlieger — Somewhere on the Internet, 2025-05-20 --- tag v0.148.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.148.0 ---------------- * Makefile: add vet command to check for consistent struct tags (osbuild/image-builder#1554) * Author: Michael Vogt, Reviewers: Lukáš Zapletal, Simon de Vlieger * disk: tiny tweaks for the new MkfsOptions support (osbuild/image-builder#1545) * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Alexander Larsson, Lukáš Zapletal * fedora/many: increase `/boot` to 1 GiB (HMS-8604) (osbuild/image-builder#1557) * Author: Simon de Vlieger, Reviewers: Achilleas Koutsou, Ondřej Budai * fedora/wsl: include `wsl-setup` (HMS-8573) (osbuild/image-builder#1550) * Author: Simon de Vlieger, Reviewers: Brian C. Lane, Michael Vogt * fedora: add `anaconda.ModuleUsers` to ImageInstallerImage (osbuild/image-builder#1558) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger * fedora: implement setting of the RootfsType via YAML (osbuild/image-builder#1544) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger * rhel10: move ImageConfig into pure YAML (osbuild/image-builder#1542) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger — Somewhere on the Internet, 2025-05-26 ---
tag v0.145.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.145.0 ---------------- * github: run dependabot gomod action weekly (osbuild/image-builder#1476) * Author: Achilleas Koutsou, Reviewers: Lukáš Zapletal — Somewhere on the Internet, 2025-05-12 --- tag v0.146.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.146.0 ---------------- * Fixes for ESP partition: Make optional, set label (osbuild/image-builder#1525) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Brian C. Lane * Initial automotive work: custom selinux policy, separate build container for bootc, and ext4 verity (osbuild/image-builder#1519) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Simon de Vlieger * Update snapshots to 20250512 (osbuild/image-builder#1515) * Author: SchutzBot, Reviewers: Achilleas Koutsou, Simon de Vlieger * disk: make auto-generated /boot 1 GiB big (osbuild/image-builder#1499) * Author: Ondřej Budai, Reviewers: Achilleas Koutsou, Michael Vogt * distro.yaml: Clean up yamllint errors and warnings (osbuild/image-builder#1523) * Author: Brian C. Lane, Reviewers: Michael Vogt, Simon de Vlieger * distro/rhel9: make /boot 1 GiB everywhere (osbuild/image-builder#1498) * Author: Ondřej Budai, Reviewers: Michael Vogt, Simon de Vlieger * distro: move disk/container image types into pure YAML (COMPOSER-2533) (osbuild/image-builder#1508) * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Simon de Vlieger * fedora: move all image types into pure YAML (osbuild/image-builder#1514) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger * fsnode: fix go-1.24 errors (osbuild/image-builder#1521) * Author: Michael Vogt, Reviewers: Ondřej Budai, Tomáš Hozza * osbuild: add JSON/YAML unmarshal to UdevRulesStageOptions (osbuild/image-builder#1489) * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Simon de Vlieger * test: Run more distro tests in parallel (osbuild/image-builder#1483) * Author: Brian C. Lane, Reviewers: Michael Vogt, Simon de Vlieger — Somewhere on the Internet, 2025-05-19 --- tag v0.147.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.147.0 ---------------- * Add support for setting partition uuid and label (osbuild/image-builder#1543) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Simon de Vlieger * Cleanup of new APIs (mkfs options and build container) (osbuild/image-builder#1526) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Simon de Vlieger * distro/rhel: remove the user/group warnings for edge-commits (osbuild/image-builder#1538) * Author: Achilleas Koutsou, Reviewers: Brian C. Lane, Simon de Vlieger — Somewhere on the Internet, 2025-05-20 --- tag v0.148.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.148.0 ---------------- * Makefile: add vet command to check for consistent struct tags (osbuild/image-builder#1554) * Author: Michael Vogt, Reviewers: Lukáš Zapletal, Simon de Vlieger * disk: tiny tweaks for the new MkfsOptions support (osbuild/image-builder#1545) * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Alexander Larsson, Lukáš Zapletal * fedora/many: increase `/boot` to 1 GiB (HMS-8604) (osbuild/image-builder#1557) * Author: Simon de Vlieger, Reviewers: Achilleas Koutsou, Ondřej Budai * fedora/wsl: include `wsl-setup` (HMS-8573) (osbuild/image-builder#1550) * Author: Simon de Vlieger, Reviewers: Brian C. Lane, Michael Vogt * fedora: add `anaconda.ModuleUsers` to ImageInstallerImage (osbuild/image-builder#1558) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger * fedora: implement setting of the RootfsType via YAML (osbuild/image-builder#1544) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger * rhel10: move ImageConfig into pure YAML (osbuild/image-builder#1542) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger — Somewhere on the Internet, 2025-05-26 ---
tag v0.145.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.145.0 ---------------- * github: run dependabot gomod action weekly (osbuild/image-builder#1476) * Author: Achilleas Koutsou, Reviewers: Lukáš Zapletal — Somewhere on the Internet, 2025-05-12 --- tag v0.146.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.146.0 ---------------- * Fixes for ESP partition: Make optional, set label (osbuild/image-builder#1525) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Brian C. Lane * Initial automotive work: custom selinux policy, separate build container for bootc, and ext4 verity (osbuild/image-builder#1519) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Simon de Vlieger * Update snapshots to 20250512 (osbuild/image-builder#1515) * Author: SchutzBot, Reviewers: Achilleas Koutsou, Simon de Vlieger * disk: make auto-generated /boot 1 GiB big (osbuild/image-builder#1499) * Author: Ondřej Budai, Reviewers: Achilleas Koutsou, Michael Vogt * distro.yaml: Clean up yamllint errors and warnings (osbuild/image-builder#1523) * Author: Brian C. Lane, Reviewers: Michael Vogt, Simon de Vlieger * distro/rhel9: make /boot 1 GiB everywhere (osbuild/image-builder#1498) * Author: Ondřej Budai, Reviewers: Michael Vogt, Simon de Vlieger * distro: move disk/container image types into pure YAML (COMPOSER-2533) (osbuild/image-builder#1508) * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Simon de Vlieger * fedora: move all image types into pure YAML (osbuild/image-builder#1514) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger * fsnode: fix go-1.24 errors (osbuild/image-builder#1521) * Author: Michael Vogt, Reviewers: Ondřej Budai, Tomáš Hozza * osbuild: add JSON/YAML unmarshal to UdevRulesStageOptions (osbuild/image-builder#1489) * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Simon de Vlieger * test: Run more distro tests in parallel (osbuild/image-builder#1483) * Author: Brian C. Lane, Reviewers: Michael Vogt, Simon de Vlieger — Somewhere on the Internet, 2025-05-19 --- tag v0.147.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.147.0 ---------------- * Add support for setting partition uuid and label (osbuild/image-builder#1543) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Simon de Vlieger * Cleanup of new APIs (mkfs options and build container) (osbuild/image-builder#1526) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Simon de Vlieger * distro/rhel: remove the user/group warnings for edge-commits (osbuild/image-builder#1538) * Author: Achilleas Koutsou, Reviewers: Brian C. Lane, Simon de Vlieger — Somewhere on the Internet, 2025-05-20 --- tag v0.148.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.148.0 ---------------- * Makefile: add vet command to check for consistent struct tags (osbuild/image-builder#1554) * Author: Michael Vogt, Reviewers: Lukáš Zapletal, Simon de Vlieger * disk: tiny tweaks for the new MkfsOptions support (osbuild/image-builder#1545) * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Alexander Larsson, Lukáš Zapletal * fedora/many: increase `/boot` to 1 GiB (HMS-8604) (osbuild/image-builder#1557) * Author: Simon de Vlieger, Reviewers: Achilleas Koutsou, Ondřej Budai * fedora/wsl: include `wsl-setup` (HMS-8573) (osbuild/image-builder#1550) * Author: Simon de Vlieger, Reviewers: Brian C. Lane, Michael Vogt * fedora: add `anaconda.ModuleUsers` to ImageInstallerImage (osbuild/image-builder#1558) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger * fedora: implement setting of the RootfsType via YAML (osbuild/image-builder#1544) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger * rhel10: move ImageConfig into pure YAML (osbuild/image-builder#1542) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger — Somewhere on the Internet, 2025-05-26 ---
tag v0.145.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.145.0 ---------------- * github: run dependabot gomod action weekly (osbuild/image-builder#1476) * Author: Achilleas Koutsou, Reviewers: Lukáš Zapletal — Somewhere on the Internet, 2025-05-12 --- tag v0.146.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.146.0 ---------------- * Fixes for ESP partition: Make optional, set label (osbuild/image-builder#1525) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Brian C. Lane * Initial automotive work: custom selinux policy, separate build container for bootc, and ext4 verity (osbuild/image-builder#1519) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Simon de Vlieger * Update snapshots to 20250512 (osbuild/image-builder#1515) * Author: SchutzBot, Reviewers: Achilleas Koutsou, Simon de Vlieger * disk: make auto-generated /boot 1 GiB big (osbuild/image-builder#1499) * Author: Ondřej Budai, Reviewers: Achilleas Koutsou, Michael Vogt * distro.yaml: Clean up yamllint errors and warnings (osbuild/image-builder#1523) * Author: Brian C. Lane, Reviewers: Michael Vogt, Simon de Vlieger * distro/rhel9: make /boot 1 GiB everywhere (osbuild/image-builder#1498) * Author: Ondřej Budai, Reviewers: Michael Vogt, Simon de Vlieger * distro: move disk/container image types into pure YAML (COMPOSER-2533) (osbuild/image-builder#1508) * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Simon de Vlieger * fedora: move all image types into pure YAML (osbuild/image-builder#1514) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger * fsnode: fix go-1.24 errors (osbuild/image-builder#1521) * Author: Michael Vogt, Reviewers: Ondřej Budai, Tomáš Hozza * osbuild: add JSON/YAML unmarshal to UdevRulesStageOptions (osbuild/image-builder#1489) * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Simon de Vlieger * test: Run more distro tests in parallel (osbuild/image-builder#1483) * Author: Brian C. Lane, Reviewers: Michael Vogt, Simon de Vlieger — Somewhere on the Internet, 2025-05-19 --- tag v0.147.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.147.0 ---------------- * Add support for setting partition uuid and label (osbuild/image-builder#1543) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Simon de Vlieger * Cleanup of new APIs (mkfs options and build container) (osbuild/image-builder#1526) * Author: Alexander Larsson, Reviewers: Achilleas Koutsou, Simon de Vlieger * distro/rhel: remove the user/group warnings for edge-commits (osbuild/image-builder#1538) * Author: Achilleas Koutsou, Reviewers: Brian C. Lane, Simon de Vlieger — Somewhere on the Internet, 2025-05-20 --- tag v0.148.0 Tagger: imagebuilder-bot <[email protected]> Changes with 0.148.0 ---------------- * Makefile: add vet command to check for consistent struct tags (osbuild/image-builder#1554) * Author: Michael Vogt, Reviewers: Lukáš Zapletal, Simon de Vlieger * disk: tiny tweaks for the new MkfsOptions support (osbuild/image-builder#1545) * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Alexander Larsson, Lukáš Zapletal * fedora/many: increase `/boot` to 1 GiB (HMS-8604) (osbuild/image-builder#1557) * Author: Simon de Vlieger, Reviewers: Achilleas Koutsou, Ondřej Budai * fedora/wsl: include `wsl-setup` (HMS-8573) (osbuild/image-builder#1550) * Author: Simon de Vlieger, Reviewers: Brian C. Lane, Michael Vogt * fedora: add `anaconda.ModuleUsers` to ImageInstallerImage (osbuild/image-builder#1558) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger * fedora: implement setting of the RootfsType via YAML (osbuild/image-builder#1544) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger * rhel10: move ImageConfig into pure YAML (osbuild/image-builder#1542) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger — Somewhere on the Internet, 2025-05-26 ---
This PR moves the disk/container image types in fedora into pure YAML. That means that there is no go code anymore that defines the converted image types and adding new image types to distro.yaml adds them dynamically.
Here is an example:
This focused on fedora (for now) to show the concepts and to not get too distracted (as converting the code to YAML is a lot of busywork).
The iot and installer images for fedora still need to be done, but with this PR merge this should be just busywork.
This started out split into a bunch of smaller PRs but I decided to open a huge one instead (which is not what I usually do) because a) it provides the needed context b) rebaseing big yaml trees is a pain c) slow traction on the small PRs so I try a big one now :)
Smaller PRs we could open (again):
defs.PackageSets()return a map #1505Note that there is some useful stuff in https://github.com/osbuild/images/pull/1462/commits to scavenge, especially 62e5cbb