diff --git a/test/system/252-quadlet.bats b/test/system/252-quadlet.bats index 8101dbce35..3ccf97d269 100644 --- a/test/system/252-quadlet.bats +++ b/test/system/252-quadlet.bats @@ -723,10 +723,18 @@ EOF @test "quadlet - rootfs" { skip_if_no_selinux skip_if_rootless + + # Mount a container image to use as rootfs. Because we (may) run in + # parallel, mount a working container, not $IMAGE + cname="c-$(safename)" + run_podman run -d --name $cname $IMAGE top + run_podman container mount $cname + mountpoint="$output" + local quadlet_file=$PODMAN_TMPDIR/basic_$(safename).container cat > $quadlet_file <