Repository navigation
image-builder/bib_legacy: switch to embedded repositories (HMS-11482) - #2782
Conversation
2f12037 to
598a0ae
Compare
598a0ae to
7b02840
Compare
|
:partyblob: |
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 |
0021d07 to
134b0db
Compare
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.
134b0db to
ef2352a
Compare
|
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. |
ef2352a to
ec2b9e1
Compare
Good point, changed it to the next release (v88). Missing that, I'll change it to v89 of course :) |
ec2b9e1 to
06235e4
Compare
|
FPed as this would now be included in v89. |
… 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]>
The commit messages include details on the approach:
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:
--force-repohas been added to at least give an escape hatchIn light of that question, should we make this optional?