diff --git a/script/test/utils.sh b/script/test/utils.sh index b49d3ac0e..a516e7031 100755 --- a/script/test/utils.sh +++ b/script/test/utils.sh @@ -52,6 +52,13 @@ version=2 [plugins."io.containerd.grpc.v1.cri"] drain_exec_sync_io_timeout = "10s" + +# Userns requires idmap mount support for overlayfs (added in 5.19) +# Let's opt-in for a recursive chown, so we can always test this even in old distros. +# Note that if idmap mounts support is present, we will use that, so it is harmless to keep this +# here. +[plugins."io.containerd.snapshotter.v1.overlayfs"] + slow_chown = true EOF if command -v sestatus >/dev/null 2>&1; then