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 <samuelkarp@google.com>
This commit is contained in:
Samuel Karp committed 2026-10-09 13:49:41 -07:00
1 parent 3ea5bdbfbd
commit 91ca8d3ab4
1 file changed
+6
+6
View File
@@ -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