From b42e1afddc37dae3199e039f2a3d3cb10f01485c Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Fri, 16 Feb 2024 16:56:03 +0100 Subject: [PATCH] github: change container storage driver inside test container The default overlayfs doesn't work inside the container runner which causes the test to fail with Invalid destination name containers-storage:localhost/osbuild-skopeo-test-...: 'overlay' is not supported over overlayfs, a mount_program is required: backing file system is unsupported for this graph driver Changing the driver to vfs solves the issue. --- .github/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e410e257..7ce151a9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,5 +44,11 @@ jobs: # Share the store between the workers speeds things up further export OSBUILD_TEST_STORE=/var/tmp/osbuild-test-store fi + + # Hacky replacement of container storage driver: + # The default overlayfs doesn't work in the runner, so let's change + # it to vfs for the local storage skopeo stage test. + sed -i 's/overlay/vfs/g' /usr/share/containers/storage.conf # default system config + sed -i 's/overlay/vfs/g' /etc/containers/storage.conf || true # potential overrides TEST_CATEGORY="${{ matrix.test }}" \ tox -e "${{ matrix.environment }}"