Skip to content

Conversation

@mvo5
Copy link
Contributor

@mvo5 mvo5 commented Aug 28, 2025

[draft as this needs some cleanups and tests first but the idea is there, we also need to port https://github.com/osbuild/bootc-image-builder/pull/1048 (if we decide to do it)]

This commit adds support to build ISO images for the bootc distro.

The core idea is that the distro.Distro abstraction can have custom depsolvers. This makes sense anyway if we ever want to support non-rpm distros. For bootc we need it because we run the dnf from inside the container to be sure that we get all custom plugins/repo config etc.

This is otherwise a (mostly) 1-1 copy of the code we have already in bib.

/jira-epic HMS-8839

JIRA: HMS-9297

@supakeen
Copy link
Member

Honestly, it's easy to skip over but custom depsolvers per distro is a pretty huge thing! I love it.

@mvo5 mvo5 force-pushed the distro-bootc-with-iso branch from bbe53a9 to 14e9bf3 Compare September 4, 2025 07:51
@schutzbot schutzbot changed the title distro: add ISO support for bootc images distro: add ISO support for bootc images (HMS-9297) Sep 5, 2025
mvo5 added 11 commits September 9, 2025 17:40
The bootc based distros need a custom depsolver because
they need to use the dnf from the container to ensure
that all the plugins/custom config is used.

So manifestgen now checks if the distro defines its own
way to depsolve and if so uses that instead of using
the default way.

Note that this means that bootc ISOs (that require rpms)
are incompatible with custom depsolve helpers.
@schutzbot
Copy link
Contributor

schutzbot commented Sep 9, 2025

A previous version of this PR changed the images API or behaviour causing integration issues with osbuild-composer.
This is now fixed.

@mvo5 mvo5 force-pushed the distro-bootc-with-iso branch from 166aa15 to 99ba8d6 Compare September 9, 2025 17:03
@github-actions
Copy link

This PR is stale because it had no activity for the past 30 days. Remove the "Stale" label or add a comment, otherwise this PR will be closed in 7 days.

@github-actions github-actions bot added the Stale label Oct 11, 2025
@mvo5 mvo5 removed the Stale label Oct 11, 2025
@supakeen
Copy link
Member

This will need to implement osbuild/bootc-image-builder#1073 as well.

@mvo5
Copy link
Contributor Author

mvo5 commented Nov 12, 2025

Closing in favor of osbuild/bootc-image-builder#1131 which is much nicer.

@mvo5 mvo5 closed this Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants