pacman/tmpfiles.conf
Max Gautier 7da78a3102
Use systemd-tmpfiles for var dirs when on systemd
Putting packages files in /var prevent makes new install start with an
already populated /var, which prevent taking advantage of the systemd
provided tmpfiles.d/var.conf, which notably has this line:
q /var 0755 - - -
-> on supported filesystems (currently that means btrfs), this creates
/var as a subvolume, which has the benefit of excluding it from /
snapshots.

On non-systemd system, the `meson install` behavior stays the same,
/var/lib/pacman and /var/cache/pacman/pkg are included in DESTDIR.

Signed-off-by: Max Gautier <mg@max.gautier.name>
2024-02-29 10:18:26 +01:00

4 lines
71 B
Text

# Setup pacman data and cache directories
d %S/pacman
d %C/pacman/pkg