770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering# This file is part of systemd.
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering#
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering# systemd is free software; you can redistribute it and/or modify it
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering# under the terms of the GNU Lesser General Public License as published by
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering# the Free Software Foundation; either version 2.1 of the License, or
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering# (at your option) any later version.
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering# See tmpfiles.d(5) for details
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering
822cd601357f6f45d0176ae38fe9f86077462f06Lennart PoetteringQ /var/lib/machines 0700 - - -
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering# Remove old temporary snapshots, but only at boot. Ideally we'd have
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering# "self-destroying" btrfs snapshots that go away if the last last
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering# reference to it does. To mimic a scheme like this at least remove
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering# the old snapshots on fresh boots, where we know they cannot be
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering# referenced anymore. Note that we actually remove all temporary files
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering# in /var/lib/machines/ at boot, which should be safe since the
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering# directory has defined semantics. In the root directory (where
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering# systemd-nspawn --ephemeral places snapshots) we are more strict, to
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering# avoid removing unrelated temporary files.
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart Poettering
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart PoetteringR! /var/lib/machines/.#*
770b5ce4fc31a336a41e81381c229da725ef0cfaLennart PoetteringR! /.#machine.*