History log of /systemd/tmpfiles.d/var.conf
Revision Date Author Comments Expand
822cd601357f6f45d0176ae38fe9f86077462f06 22-Oct-2015 Lennart Poettering <lennart@poettering.net>

tmpfiles.d: change all subvolumes to use quota Let's make sure the subvolumes we create fit into a sensible definition of a quota tree.

770b5ce4fc31a336a41e81381c229da725ef0cfa 15-Jun-2015 Lennart Poettering <lennart@poettering.net>

tmpfiles: automatically remove old machine snapshots at boot Remove old temporary snapshots, but only at boot. Ideally we'd have "self-destroying" btrfs snapshots that go away if the last last reference to it does. To mimic a scheme like this at least remove the old snapshots on fresh boots, where we know they cannot be referenced anymore. Note that we actually remove all temporary files in /var/lib/machines/ at boot, which should be safe since the directory has defined semantics. In the root directory (where systemd-nspawn --ephemeral places snapshots) we are more strict, to avoid removing unrelated temporary files. This also splits out nspawn/container related tmpfiles bits into a new tmpfiles snippet to systemd-nspawn.conf

fed2b07ebc9e8694b5b326923356028f464381ce 21-Apr-2015 Lennart Poettering <lennart@poettering.net>

tmpfiles: make /home and /var btrfs subvolumes by default when booted up with them missing This way the root subvolume can be left read-only easily, and variable and user data writable with explicit quota set.

5f129649b97bdff2bffefcd9c773157843ede6f6 15-Jan-2015 Lennart Poettering <lennart@poettering.net>

nspawn,machined: change default container image location from /var/lib/container to /var/lib/machines Given that this is also the place to store raw disk images which are very much bootable with qemu/kvm it sounds like a misnomer to call the directory "container". Hence, let's change this sooner rather than later, and use the generic name, in particular since we otherwise try to use the generic "machine" preferably over the more specific "container" or "vm".

814f000872fc2d254250831607bdca9b27e5705e 28-Dec-2014 Lennart Poettering <lennart@poettering.net>

tmpfiles.d: upgrade a couple of directories we create at boot to subvolumes In particular we upgrade /var/lib/container, /var/tmp and /tmp to subvolumes.

f148ae14892c78da5f7a33e7319c322eac1513a9 25-Nov-2014 Martin Pitt <martin.pitt@ubuntu.com>

tmpfiles.d: Fix directory name The .service uses "/var/lib/container", not "containers".

797e7a51cdfb23fa1b90b0a0ea2d5c1c83a739e1 21-Nov-2014 Martin Pitt <martin.pitt@ubuntu.com>

tmpfiles.d: Create /var/lib/containers Create /var/lib/containers so that it exists with an appropriate mode. We want 0700 by default so that users on the host aren't able to call suid root binaries in the container. This becomes a security issue if a user can enter a container as root, create a suid root binary, and call that from the host. (This assumes that containers are caged by mandatory access control or are started as user).

7613d0aec98d86c449aad7932116a2e7d67f8507 17-Jun-2014 Lennart Poettering <lennart@poettering.net>

tmpfiles: remove line for automatic clean-ups for /var/cache/man/ Management of /var/cache/man should move to the distribution package owning the directory (for example, man-db). As man pages are a non-essential part of the system and unnecessary for minimal setups, there's no point in having systemd ship these lines. Distribution packages should make sure the appropriate package for their distribution adopts this line. Ideally, the line is adopted by the upstream package. For Fedora I have filed this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1110274

1ebab2103d8f82822318e708363c0cc2b930289e 11-Jun-2014 Lennart Poettering <lennart@poettering.net>

tmpfiles: if /var is mounted from tmpfs, we should adjust its access mode

9339db7187c61eb7ae7e6ffcddb2b2f2686954eb 11-Jun-2014 Lennart Poettering <lennart@poettering.net>

tmpfiles: always recreate the most basic directory structure in /var Let's allow booting up with /var empty. Only create the most basic directories to get to a working directory structure and symlink set in /var.