Skip to content

Conversation

@mvo5
Copy link
Collaborator

@mvo5 mvo5 commented Aug 7, 2025

This uses osbuild/images#1736 to get all disk manifests build using the "images" library.

This is a simpler version of #1009 that does not rely on manifest diffs. We may go back to the manifest tests but for now functional tests are probably enough.

@mvo5 mvo5 force-pushed the distro-bootc branch 2 times, most recently from e7434ff to 4b728ee Compare August 7, 2025 19:29
@mvo5 mvo5 marked this pull request as ready for review August 7, 2025 19:32
@mvo5 mvo5 changed the title main: use the images library for (most) of the manifest generation main: use the images library for the disk manifest generation Aug 27, 2025
@mvo5
Copy link
Collaborator Author

mvo5 commented Aug 28, 2025

#1033 <- this needs to be ported before this can go in.

@alexlarsson

This comment was marked as outdated.

alexlarsson added a commit to alexlarsson/osbuild-images that referenced this pull request Sep 2, 2025
This fixes two things:
 1) If SetBuildContainer() is not called, buildImgRef is nil
 2) If it is called, buildImgRef is properly set to the value passed.

Without this, when using a build container, I got errors about a
missing "target" pipeline when using osbuild/bootc-image-builder#1014
github-merge-queue bot pushed a commit to osbuild/images that referenced this pull request Sep 3, 2025
This fixes two things:
 1) If SetBuildContainer() is not called, buildImgRef is nil
 2) If it is called, buildImgRef is properly set to the value passed.

Without this, when using a build container, I got errors about a
missing "target" pipeline when using osbuild/bootc-image-builder#1014
@mvo5 mvo5 requested a review from a team as a code owner September 5, 2025 07:24
@mvo5 mvo5 requested review from bcl and lzap and removed request for a team September 5, 2025 07:24
@mvo5 mvo5 force-pushed the distro-bootc branch 2 times, most recently from f919e08 to 973f673 Compare September 5, 2025 09:49
achilleas-k
achilleas-k previously approved these changes Sep 10, 2025
Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

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

Very nice. LGTM.

Let's get this rebased and merge it.

This commit removes most of the code that deals with generating
the osbuild manifest and imports the new support for this from
the images library instead. Only disk images are supported for
now.
We decided to move away from the blueprint way to specify
the partition tables for a bootc container and use the
more descriptive `disk.yaml`. Adjust the test to check
the same functionality (aboot.img writing) using the
new mechanism.

Thanks to Alex for the example disk.yaml.
The root user cannot be customized much with anaconda
and with osbuild/images#1806
we got stricter about it. Unfortunately our own test
manifest sets the root home for ISOs (because we need
it for disks and use the same blueprint) and it
panic()s now.

Fix this by removing the problematic option for ISOs
from the blueprint.
@achilleas-k achilleas-k added this pull request to the merge queue Sep 10, 2025
Merged via the queue into osbuild:main with commit 29771e5 Sep 10, 2025
21 of 22 checks passed
mvo5 added a commit to mvo5/images that referenced this pull request Sep 22, 2025
We used `./tools/gen-bootc-diff` to ensure the manifest
generation for disk based bootc images between the `images`
library and the custom code in `bootc-image-builder` is
identical. Now that bootc-image-builder is using the images
library directly (c.f.
osbuild/bootc-image-builder#1014)
this test is a tautology and not useful anymore.

If we move the rpm based bootc installer ISO generation into
images we will need to revert this removal again. But its
just a git revert away and there is no need to clutter the
repo with this no-longer-needed script.
mvo5 added a commit to mvo5/images that referenced this pull request Sep 22, 2025
We used `./tools/gen-bootc-diff` to ensure the manifest
generation for disk based bootc images between the `images`
library and the custom code in `bootc-image-builder` is
identical. Now that bootc-image-builder is using the images
library directly (c.f.
osbuild/bootc-image-builder#1014)
this test is a tautology and not useful anymore.

We test the bootc based manifests generation now in images
via `./tests/bootc-fake-containers.yaml` and the manifests
and diff show up with our regular
`./tools/gen-manifest{,s}-{diff,checksums}` tooling.

If we move the rpm based bootc installer ISO generation into
images we will need to revert this removal again. But its
just a git revert away and there is no need to clutter the
repo with this no-longer-needed script.
github-merge-queue bot pushed a commit to osbuild/images that referenced this pull request Sep 22, 2025
We used `./tools/gen-bootc-diff` to ensure the manifest
generation for disk based bootc images between the `images`
library and the custom code in `bootc-image-builder` is
identical. Now that bootc-image-builder is using the images
library directly (c.f.
osbuild/bootc-image-builder#1014)
this test is a tautology and not useful anymore.

We test the bootc based manifests generation now in images
via `./tests/bootc-fake-containers.yaml` and the manifests
and diff show up with our regular
`./tools/gen-manifest{,s}-{diff,checksums}` tooling.

If we move the rpm based bootc installer ISO generation into
images we will need to revert this removal again. But its
just a git revert away and there is no need to clutter the
repo with this no-longer-needed script.
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