Skip to content

Commit 8e3722c

Browse files
committed
CI: Set slow_chown for overlayfs snapshotter
Userns requires idmap mounts or to opt-in for a slow and expensive chown. As idmap mounts support for overlayfs was merged in 5.19, let's add the slow_chown config for our CI. The config is harmless to keep it in new kernels, as if idmap mounts is supported, it will be just used. Whenever all our CI is run with kernels >= 5.19, we can remove this setting. Signed-off-by: Rodrigo Campos <[email protected]>
1 parent 46d3094 commit 8e3722c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

script/test/utils.sh

+7
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ version=2
5252
5353
[plugins."io.containerd.grpc.v1.cri"]
5454
drain_exec_sync_io_timeout = "10s"
55+
56+
# Userns requires idmap mount support for overlayfs (added in 5.19)
57+
# Let's opt-in for a recursive chown, so we can always test this even in old distros.
58+
# Note that if idmap mounts support is present, we will use that, so it is harmless to keep this
59+
# here.
60+
[plugins."io.containerd.snapshotter.v1.overlayfs"]
61+
slow_chown = true
5562
EOF
5663

5764
if command -v sestatus >/dev/null 2>&1; then

0 commit comments

Comments
 (0)