Skip to content

Add new ostree-iso image type (HMS-10627) - #2799

Merged
achilleas-k merged 11 commits into
osbuild:mainfrom
brlane-rht:main-ostree-iso
Nov 4, 2026
Merged

achilleas-k merged 11 commits into
osbuild:mainfrom
brlane-rht:main-ostree-iso

Conversation

@brlane-rht

Copy link
Copy Markdown
Contributor

This adds a new image type, ostree-iso, which creates an iso with an erofs compressed root filsystem that boots from an ostree commit. generic-iso remains the same, booting from a rootfs that is a copy of the deployed ostree commit.
This replaces #2414

@brlane-rht
brlane-rht requested a review from a team as a code owner October 27, 2026 22:12
@brlane-rht
brlane-rht force-pushed the main-ostree-iso branch 2 times, most recently from 5c9dc6b to 24ff533 Compare October 29, 2026 16:51
@supakeen
supakeen requested a review from achilleas-k October 30, 2026 08:57

@avitova avitova left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! I roughly checked this, it was a lot, but I have some small comments.

Comment thread pkg/distro/defs/bootc_imagetype.go Resolved
Comment thread pkg/image/bootc_iso.go Resolved
Comment thread pkg/image/bootc_iso.go Resolved
Comment thread pkg/manifest/iso_ostree.go Resolved
Comment thread pkg/distro/defs/bootc_imagetype.go Resolved
Comment thread pkg/image/bootc_iso.go Resolved
This is needed in order for the ostree substitution to run on the
various different bootloaders. Return a list of config files containing
the kernel options for later use.

Related: HMS-10627
This creates an iso that boots an ostree commit from the root
filesystem. It expects the TreePipeline to contain the kernel, initrd,
and pre-compressed root filesystem. It is used by the ostree-iso image
type.

Related: HMS-10627

@avitova avitova left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for updating this. I took a second round, since there was quite a few changes. Could you address errors in raw_bootc.go mainly?

Comment thread pkg/manifest/iso_bootloaders.go Resolved
Comment thread pkg/manifest/raw_bootc.go Resolved
Comment thread pkg/manifest/raw_bootc.go Resolved
This will allow installing containers into mounted filesystems, like the
raw bootc filesystem used for generic-iso

Adds a new function, GenContainerStorageStagesWithMounts, and changes
GenContainerStorageStages to wrap it without passing devices or mounts.

Related: HMS-10627
This adds the ability to embed containers into the bootc filesystem
container storage at /var/lib/containers/storage, making them available
to the root user of the image.

Set the PayloadContainers to the container source specs to be added,
after the initial call to NewRawBootcImage.

Related: HMS-10627
This builds on top of BootcRootFS, also used by the bootc PXE tar image
type, to create an iso containing a compressed ostree commit root
filesystem.

Related: HMS-10627
This checks the container for the required initrd modules, uses
blueprint customizations, and uses the yaml definitions to setup the iso
customizations.

Related: HMS-10627
This enables creation of the bootc based iso, allowing support for
adding payloads and customizations. The root filesystem uses erofs
compression.

Resolves: HMS-10627
This tests for expected stages, and tests to make sure the aarch64
version does not include the legacy i386 grub2 support files.

Related: HMS-10627
This enables generating the ostree-iso manifest checksums. It adds fake
containers that include the required dracut modules for the initrd
check, and generates the new checksums.

Related: HMS-10627
Include an example Containerfile, explain that it boots an ostree commit
from an erofs compressed root filesystem.

Related: HMS-10627

@avitova avitova left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you! LGTM

@achilleas-k achilleas-k 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.

Very nice. No notes.

LGTM

@achilleas-k
achilleas-k added this pull request to the merge queue Nov 4, 2026
Merged via the queue into osbuild:main with commit 292f964 Nov 4, 2026
55 checks passed
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