Skip to content

image-builder/bib_legacy: switch to embedded repositories (HMS-11482) - #2782

Merged
achilleas-k merged 4 commits into
osbuild:mainfrom
croissanne:legacy-bootc-iso-pqc
Oct 27, 2026
Merged

achilleas-k merged 4 commits into
osbuild:mainfrom
croissanne:legacy-bootc-iso-pqc

Conversation

@croissanne

@croissanne croissanne commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

The commit messages include details on the approach:

    image-builder/bib_legacy: use embedded repositories
    
    When building the bib legacy ISO, repositories were inferred from the
    container ref specified by the user. This included GPG keys, which
    caused problems when building RHEL 9.
    
    For instance, when building RHEL 9 from a RHEL 10 bib container, GPG
    keys signed using SHA1 are not allowed. Also, PQC keys on RHEL 9 are
    shipped in a separate file in /etc/pki and are not referred to in the
    repositories file, meaning they were not getting picked up at all.
    
    Rather than inferring repositories from the container, use the
    repositories shipped by image builder itself, similar to how package
    mode is handled.

However, this should not go in without some further thought and consideration from people who have more knowledge about how the legacy bootc anaconda-iso is actually used:

  • Will this break certain usecases? Do people rely on the fact that repositories come from containers?
    • --force-repo has been added to at least give an escape hatch
  • In light of that question, should we make this optional?
  • Do we need to ship the tweaks to 'modern' bootc as well?

@croissanne
croissanne requested a review from a team as a code owner October 22, 2026 11:58
@croissanne
croissanne force-pushed the legacy-bootc-iso-pqc branch from 2f12037 to 598a0ae Compare October 22, 2026 11:59
@croissanne
croissanne force-pushed the legacy-bootc-iso-pqc branch from 598a0ae to 7b02840 Compare October 22, 2026 12:00
@supakeen

Copy link
Copy Markdown
Member

:partyblob:

@achilleas-k

achilleas-k commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Will this break certain usecases? Do people rely on the fact that repositories come from containers?

I think it's possible people have been relying on this, but it's also a bit of a strange situation in general. IB defines what goes in the ISO, the packages are part of the image definition. I think if users were trying to control the build of the ISO or were assuming certain things about the package that would build the ISO based on the repositories from the base image, that was a bit of a messy situation in general (package lists are built in, but repos come from somewhere else). It is the reason we chose to use the repos from the image (say, you want a custom kernel and so you configure repos in your image for your custom kernel and then the ISO gets built with it), but in practice I would bet the failures were more than the successes with this situation.

My suggestion would be to document that this change is happening and include a suggestion for a workaround to use --{force,extra}-repo with the custom repository when needed. Which means we'd have to add those options to the BIB build command as well.

@croissanne
croissanne force-pushed the legacy-bootc-iso-pqc branch 2 times, most recently from 0021d07 to 134b0db Compare October 23, 2026 12:22
When building the bib legacy ISO, repositories were inferred from the
container ref specified by the user. This included GPG keys, which
caused problems when building RHEL 9.

For instance, when building RHEL 9 from a RHEL 10 bib container, GPG
keys signed using SHA1 are not allowed. Also, PQC keys on RHEL 9 are
shipped in a separate file in /etc/pki and are not referred to in the
repositories file, meaning they were not getting picked up at all.

Rather than inferring repositories from the container, use the
repositories shipped by image builder itself, similar to how package
mode is handled.
To continue to support building RHEL 9 bootc legacy ISOs on RHEL 10,
certain tweaks need to be enabled similar to package mode.

Failures on GPG key imports need to be ignored, as importing a PQC key
using rpmkeys on RHEL 9 will fail. Furthermore pqrpm should be used
inside of the buildroot to verify PQC signatures.

For RHEL 10 import errors are ignored because the host rpmkeys binary
might not support PQC keys either. This supports building RHEL 10 on
Fedora for instance.
Now that the repositories are embedded into the binary and defined
upstream, this gives an escape hatch to users, allowing them to define
any repository they like.
@croissanne
croissanne force-pushed the legacy-bootc-iso-pqc branch from 134b0db to ef2352a Compare October 23, 2026 12:36
@brlane-rht

Copy link
Copy Markdown
Contributor

This looks pretty good. but I'm not sure about using the PR as the reference point for the change, most users aren't going to know how to figure out what release versions contain the change.

@croissanne
croissanne force-pushed the legacy-bootc-iso-pqc branch from ef2352a to ec2b9e1 Compare October 26, 2026 09:45
@croissanne

Copy link
Copy Markdown
Member Author

This looks pretty good. but I'm not sure about using the PR as the reference point for the change, most users aren't going to know how to figure out what release versions contain the change.

Good point, changed it to the next release (v88). Missing that, I'll change it to v89 of course :)

brlane-rht
brlane-rht previously approved these changes Oct 26, 2026

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

Looks good to me!

@croissanne

Copy link
Copy Markdown
Member Author

FPed as this would now be included in v89.

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

Splendid!

@achilleas-k
achilleas-k added this pull request to the merge queue Oct 27, 2026
Merged via the queue into osbuild:main with commit da6a519 Oct 27, 2026
51 of 55 checks passed
@croissanne
croissanne deleted the legacy-bootc-iso-pqc branch October 28, 2026 10:18
dx4homelab added a commit to dx4homelab/dx4bluefin that referenced this pull request Dec 2, 2026
… repos

All anaconda-iso jobs fail since bootc-image-builder:latest was rebuilt on
2026-11-24 with image-builder 89.0.0:

  error: cannot build manifest: requested repository not found:
  for distribution "bluefin-45"

image-builder 89 (osbuild/image-builder#2782) stopped reading the
installer repos from the payload container and looks them up in its
embedded registry by os-release "<ID>-<VERSION_ID>", with no ID_LIKE
fallback. Bluefin ships ID=bluefin, so no derived image can build an ISO.

Pin BIB_IMAGE to the 2026-11-09 build (image-builder 87.0.0), the one
the last green run (2026-11-20) used. It still reads the repos from the
image, so the Fedora 45 repo links from 01-custom-dx4homelab.sh apply
and packages stay GPG-checked; --force-repo would have disabled that.

Assisted-by: Claude Opus 5.5 via Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

4 participants