From 91ca8d3ab4a659dd6dd871096201ce3ebc8463da Mon Sep 17 00:00:00 2001 From: Samuel Karp Date: Fri, 9 Oct 2026 19:24:36 +0000 Subject: [PATCH] script/vm: mask systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer runs 15 minutes after boot and removes empty directories under /tmp with mtimes older than 10 days. Some integration tests place containerd's root in t.TempDir() and unpack image layers with older directory timestamps under /tmp. If the timer fires during extraction, systemd-tmpfiles removes newly created empty directories before the final directory timestamp pass. Assisted-by: Antigravity Signed-off-by: Samuel Karp --- script/vm/provision.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script/vm/provision.sh b/script/vm/provision.sh index 1b6aaa3f97..a8ab3145d4 100755 --- a/script/vm/provision.sh +++ b/script/vm/provision.sh @@ -116,3 +116,9 @@ containerd-shim-runc-fp-v1 -v # and establish /etc/containerd/config.toml SELINUX="${SELINUX}" script/setup/config-selinux script/setup/config-containerd + +# systemd-tmpfiles-clean.timer runs 15 minutes after boot and removes empty +# directories under /tmp with mtimes older than 10 days. Unpacking an image +# layer under /tmp applies the layer's directory timestamps before finishing +# extraction. +systemctl mask --now systemd-tmpfiles-clean.timer