]>
Commit | Line | Data |
---|---|---|
770b5ce4 LP |
1 | # 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 | ||
822cd601 | 10 | Q /var/lib/machines 0700 - - - |
770b5ce4 LP |
11 | |
12 | # Remove old temporary snapshots, but only at boot. Ideally we'd have | |
61233823 | 13 | # "self-destroying" btrfs snapshots that go away if the last |
770b5ce4 LP |
14 | # 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 | ||
22 | R! /var/lib/machines/.#* | |
23 | R! /.#machine.* |