Open hroncok opened 1 month ago
Thank you for the report. One of the caveats is that, unless you --scrub=bootstrap|all, the bootstrap is cached and never updated anyway, #1289.
If you need to experiment quickly, there's a quick PR (it could break other use cases, though, not sure): #1415
Right. I guess the cache could use the addrepos as additional keys?
Triage time: we'd prefer to fix #1289 first
Short description of the problem
When debugging a problem with RHEL 8 mock bootstrap chroots on Fedora 40 I was about to verify a fix. I built the fixed package in Copr and run:
Unfortunately, when the bootstrap chroot was created, it did not use this repo.
I had to edit
/etc/mock/templates/rhel-8.tpl
and add the repo to the repos configuration manually. This was unexpected.Output of
rpm -q mock
mock-5.6-1.fc40.noarch
Steps to reproduce issue
mock -r rhel+epel-8-x86_64 --scurb=all
mock -r rhel+epel-8-x86_64 --bootstrap-chroot --no-bootstrap-image init --addrepo='https://download.copr.fedorainfracloud.org/results/churchyard/rhel8-python3-libexec-provides/rhel-8-$basearch/'
This will fail with:
Until my Merge Request is merged and shipped.
Notice that the added repo is not in the list of repos it fetched.
When I edited
/etc/mock/templates/rhel-8.tpl
, it looked like this: