schutzbot/mockbuild.sh: let mock bootstrap chroot

Don't instruct mock to not bootstrap the chroot. This is making builds
to fail on F40 due to DNF5. The error message suggests to bootstrap
chroot.

Example:
https://gitlab.com/redhat/services/products/image-builder/ci/osbuild/-/jobs/7239614060#L1363

Note that e.g. osbuild-composer does not specify the
--no-bootstrap-chroot option either.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-07-01 21:45:49 +02:00 committed by Achilleas Koutsou
parent 4c806cbe34
commit 8db6b8985a

View file

@ -135,7 +135,7 @@ sudo usermod -a -G mock "$(whoami)"
# Compile RPMs in a mock chroot
greenprint "🎁 Building RPMs with mock"
mock -r $MOCK_CONFIG --no-bootstrap-chroot \
mock -r $MOCK_CONFIG \
--resultdir $REPO_DIR \
rpmbuild/SRPMS/*.src.rpm
sudo chown -R $USER ${REPO_DIR}