rpm-software-management / mock

Mock is a tool for a reproducible build of RPM packages.
GNU General Public License v2.0
381 stars 227 forks source link

Mock in Fedora 41+ Container seems to be missing fuse-overlayfs #1381

Closed praiskup closed 4 weeks ago

praiskup commented 3 months ago

Original report: https://bugzilla.redhat.com/show_bug.cgi?id=2284167

The workaround is to run mock in container started like podman run -v /var/lib/containers, but that's not ideal.

The proposal is to document this thing, and to add Suggests: fuse-overlayfs

k0ste commented 3 months ago

The Fedora 40 (fedora:latest) is also affected. Just rebuild container for the fix #1379 and get

INFO: Unable to build arch x86_64 natively on arch aarch64. Setting forcearch to use software emulation.
INFO: mock.py version 5.6 starting (python version = 3.12.3, NVR = mock-5.6-1.fc40), args: /usr/libexec/mock/mock --config-opts=cache_topdir=/rpmbuild/cache --enable-network -r centos-stream-8-x86_64 --buildsrpm --spec=/rpmbuild/intel-firmware-s2600wf.spec --resultdir=/rpmbuild/output/centos-stream-8-x86_64 --sources=/rpmbuild/sources
Start(bootstrap): init plugins
INFO: selinux disabled
Finish(bootstrap): init plugins
Start: init plugins
INFO: selinux disabled
Finish: init plugins
INFO: Signal handler active
Start: run
INFO: Start(/rpmbuild/intel-firmware-s2600wf.spec)  Config(centos-stream-8-x86_64)
Start: clean chroot
Finish: clean chroot
Mock Version: 5.6
INFO: Mock Version: 5.6
Start(bootstrap): chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled package manager cache
Start(bootstrap): cleaning package manager metadata
Finish(bootstrap): cleaning package manager metadata
INFO: Guessed host environment type: docker
INFO: It seems that you run Mock in a Docker container.  Mock though uses container tooling itself (namely Podman) for downloading bootstrap image.  This might require you to run Mock in 'docker run --privileged'.
INFO: Using bootstrap image: quay.io/centos/centos:stream8
INFO: Pulling image: quay.io/centos/centos:stream8
ERROR: Error: configure storage: 'overlay' is not supported over overlayfs, a mount_program is required: backing file system is unsupported for this graph driver