Skip to content

Commit c3bf705

Browse files
Merge pull request #26986 from mheon/tmpfiles_remove
Add R! to systemd-tmpfiles script for all /tmp dirs
2 parents 2499de2 + 4b66e5a commit c3bf705

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

contrib/tmpfile/podman.conf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
# /tmp/podman-run-* directory can contain content for Podman containers that have run
2-
# for many days. This following line prevents systemd from removing this content.
2+
# for many days. The following lines prevents systemd from removing this content.
3+
# At the same time, these directories must also be cleaned on reboot.
4+
# Thus, each path has two lines: x to not periodically clean, R! to recursively
5+
# remove on reboot.
36
x /tmp/podman-run-*
7+
R! /tmp/podman-run-*
48
x /tmp/storage-run-*
9+
R! /tmp/storage-run-*
510
x /tmp/containers-user-*
11+
R! /tmp/containers-user-*
612
x /tmp/run-*/libpod
13+
R! /tmp/run-*/libpod
714
D! /var/lib/containers/storage/tmp 0700 root root
815
D! /run/podman 0700 root root
916
D! /var/lib/cni/networks

0 commit comments

Comments
 (0)