Lennart Poettering | 770b5ce | 2015-06-15 19:24:43 +0200 | [diff] [blame] | 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 | |
Lennart Poettering | 822cd60 | 2015-10-21 19:47:28 +0200 | [diff] [blame] | 10 | Q /var/lib/machines 0700 - - - |
Lennart Poettering | 770b5ce | 2015-06-15 19:24:43 +0200 | [diff] [blame] | 11 | |
| 12 | # Remove old temporary snapshots, but only at boot. Ideally we'd have |
Torstein Husebø | 6123382 | 2016-07-10 14:48:23 +0200 | [diff] [blame] | 13 | # "self-destroying" btrfs snapshots that go away if the last |
Lennart Poettering | 770b5ce | 2015-06-15 19:24:43 +0200 | [diff] [blame] | 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.* |