diff --git a/contrib/tmpfile/podman.conf b/contrib/tmpfile/podman.conf index 5cc4c0d70e..afb3d5bb2b 100644 --- a/contrib/tmpfile/podman.conf +++ b/contrib/tmpfile/podman.conf @@ -1,9 +1,16 @@ # /tmp/podman-run-* directory can contain content for Podman containers that have run -# for many days. This following line prevents systemd from removing this content. +# for many days. The following lines prevents systemd from removing this content. +# At the same time, these directories must also be cleaned on reboot. +# Thus, each path has two lines: x to not periodically clean, R! to recursively +# remove on reboot. x /tmp/podman-run-* +R! /tmp/podman-run-* x /tmp/storage-run-* +R! /tmp/storage-run-* x /tmp/containers-user-* +R! /tmp/containers-user-* x /tmp/run-*/libpod +R! /tmp/run-*/libpod D! /var/lib/containers/storage/tmp 0700 root root D! /run/podman 0700 root root D! /var/lib/cni/networks