diff --git a/tmpfiles.d/systemd-nspawn.conf b/tmpfiles.d/systemd-nspawn.conf index 6549ea41018..78bd1c670e0 100644 --- a/tmpfiles.d/systemd-nspawn.conf +++ b/tmpfiles.d/systemd-nspawn.conf @@ -19,5 +19,5 @@ Q /var/lib/machines 0700 - - - # systemd-nspawn --ephemeral places snapshots) we are more strict, to # avoid removing unrelated temporary files. -R!$ /var/lib/machines/.#* -R!$ /.#machine.* +R! /var/lib/machines/.#* +R! /.#machine.* diff --git a/tmpfiles.d/systemd-tmp.conf b/tmpfiles.d/systemd-tmp.conf index 093830586c1..d47d468fba8 100644 --- a/tmpfiles.d/systemd-tmp.conf +++ b/tmpfiles.d/systemd-tmp.conf @@ -14,10 +14,10 @@ x /var/tmp/systemd-private-%b-* 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-* +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/.#* +r! /var/lib/systemd/coredump/.#*