Skip to content

Restore anaconda-iso/iso type to bootc-image-builder - #2527

Merged
achilleas-k merged 4 commits into
osbuild:mainfrom
brlane-rht:main-bib-anaconda-iso
Jul 21, 2026
Merged

Restore anaconda-iso/iso type to bootc-image-builder#2527
achilleas-k merged 4 commits into
osbuild:mainfrom
brlane-rht:main-bib-anaconda-iso

Conversation

@brlane-rht

Copy link
Copy Markdown
Contributor

It was removed, but is still used by some, so this adds the missing code and adjusts it to work with the current image-builder

Related: HMS-10969

@brlane-rht
brlane-rht requested a review from a team as a code owner July 16, 2026 23:16
This will allow bootc-image-builder to use it to retrieve the distro
specific packages needed for the anaconda-iso.

Related: HMS-10969
This copies over the legacy_iso.go code from bib to
cmd/image-builder/bib_legacy.go and adjusts it to work with
image-builder.

The largest change is using NewYAMLDistroYAMLFrom to load the anaconda
rpm packages. The distro of the bootc container is used to lookup the
image-builder distro yaml and the rpm packages from the
'bootc-rpm-installer' section are installed.

Related: HMS-10969
Hook up the legacy anaconda iso code to the bootc-image-builder call
path. This is selected by using --type=anaconda-iso or --type=iso

Related: HMS-10969
@brlane-rht
brlane-rht force-pushed the main-bib-anaconda-iso branch from f20bb9c to 73061c1 Compare July 20, 2026 16:01
@supakeen

Copy link
Copy Markdown
Member

I'm confused why this was removed in the first place; it definitely wasn't supposed to be 🙂, did something go wrong during the merge/previous import? cc @achilleas-k.

@achilleas-k

Copy link
Copy Markdown
Member

I'm confused why this was removed in the first place; it definitely wasn't supposed to be 🙂, did something go wrong during the merge/previous import? cc @achilleas-k.

I don't know for certain. I discovered it wasn't working as expected when I enabled the BIB tests here. It's possible we never tested it with bootc-image-builder built from the image-builder-cli repo.

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

LGTM!

Thanks for taking care of this on short notice. A comment below for a follow-up, but good to merge.

Comment on lines +139 to +142
// The anaconda-iso code is different enough for a separate function
if imgTypeStr == "anaconda-iso" || imgTypeStr == "iso" {
return manifestFromCobraForLegacyISO(imgref, buildImgref, imgTypeStr, rootFs, rpmCacheRoot, config, useLibrepo, cntArch)
}

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.

I like that this is separated completely from every other image type. Makes it easier to work with this specific image type, which is very different from the rest, without needing to think about potential interactions with anything else.

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.

It looks like this file contains functions that were already copied over and distributed to other files. But I'm fine with merging this as is and cleaning up after. Now that we have the ISO tests passing, we can much refactor things safely. I'd like for the refactoring to happen soon though, to minimise the chance that we start making changes, fixing bugs, and causing confusion and drift between the duplicate functions.

@achilleas-k
achilleas-k enabled auto-merge July 21, 2026 10:41
@achilleas-k
achilleas-k added this pull request to the merge queue Jul 21, 2026
Merged via the queue into osbuild:main with commit 44b8c3c Jul 21, 2026
50 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