From 2e0a9c453b03d2a372a3ab03b9720237e93a067c Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 11 Dec 2020 09:16:38 -0500 Subject: Cleanup CNI Networks on reboot CNI sometimes leaves Network information in /var/lib/cni/networks when the system crashes or containers do not shut down properly. This PR will cleanup these left over files, so that container engines will get a clean enviroment when the system reboots. Related to: https://github.com/containers/podman/issues/3759 Signed-off-by: Daniel J Walsh --- contrib/tmpfile/podman.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'contrib/tmpfile') diff --git a/contrib/tmpfile/podman.conf b/contrib/tmpfile/podman.conf index d769671e3..e7cad4066 100644 --- a/contrib/tmpfile/podman.conf +++ b/contrib/tmpfile/podman.conf @@ -1,4 +1,5 @@ # /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. -x /tmp/podman-run-.* -d /run/podman 0700 root root +x /tmp/podman-run-* +D! /run/podman 0700 root root +D! /var/lib/cni/networks -- cgit v1.2.3-54-g00ecf