summaryrefslogtreecommitdiff
path: root/tmpfiles.d
diff options
context:
space:
mode:
Diffstat (limited to 'tmpfiles.d')
-rw-r--r--tmpfiles.d/systemd-tmp.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/tmpfiles.d/systemd-tmp.conf b/tmpfiles.d/systemd-tmp.conf
index beb77dd0e0..d47d468fba 100644
--- a/tmpfiles.d/systemd-tmp.conf
+++ b/tmpfiles.d/systemd-tmp.conf
@@ -16,3 +16,8 @@ X /var/tmp/systemd-private-%b-*/tmp
# Remove top-level private temporary directories on each boot
R! /tmp/systemd-private-*
R! /var/tmp/systemd-private-*
+
+# Handle lost systemd-coredump temp files. They could be lost on old filesystems,
+# for example, after hard reboot.
+x /var/lib/systemd/coredump/.#core*.%b*
+r! /var/lib/systemd/coredump/.#*