blob: 78bd1c670e0fe8686237ff535a4dea0016931629 [file] [log] [blame]
Lennart Poettering770b5ce2015-06-15 19:24:43 +02001# This file is part of systemd.
2#
3# systemd is free software; you can redistribute it and/or modify it
4# under the terms of the GNU Lesser General Public License as published by
5# the Free Software Foundation; either version 2.1 of the License, or
6# (at your option) any later version.
7
8# See tmpfiles.d(5) for details
9
Lennart Poettering822cd602015-10-21 19:47:28 +020010Q /var/lib/machines 0700 - - -
Lennart Poettering770b5ce2015-06-15 19:24:43 +020011
12# Remove old temporary snapshots, but only at boot. Ideally we'd have
Torstein Husebø61233822016-07-10 14:48:23 +020013# "self-destroying" btrfs snapshots that go away if the last
Lennart Poettering770b5ce2015-06-15 19:24:43 +020014# reference to it does. To mimic a scheme like this at least remove
15# the old snapshots on fresh boots, where we know they cannot be
16# referenced anymore. Note that we actually remove all temporary files
17# in /var/lib/machines/ at boot, which should be safe since the
18# directory has defined semantics. In the root directory (where
19# systemd-nspawn --ephemeral places snapshots) we are more strict, to
20# avoid removing unrelated temporary files.
21
22R! /var/lib/machines/.#*
23R! /.#machine.*