]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Don't install systemdstatedir (/var/lib/systemd)
authorMax Gautier <mg@max.gautier.name>
Tue, 5 Mar 2024 08:54:47 +0000 (09:54 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 2 Feb 2026 15:10:06 +0000 (00:10 +0900)
systemdstatedir is created by tmpfiles conf (tmpfiles.d/systemd.conf.in)
already.
By shipping it, systemd prevents the effect of tmpfiles.d/var.conf.in:

q /var 0755 - - -

This should helps implementing the "Hermetic /usr" pattern.

Links: https://0pointer.net/blog/fitting-everything-together.html

meson.build

index 67c495155d1dd787a01dc33e6daa2f868f06c9ab..a68fc386e6bbfaaa09168dad115be7db9271e478 100644 (file)
@@ -2820,8 +2820,6 @@ install_data('LICENSE.GPL2',
 install_subdir('LICENSES',
                install_dir : docdir)
 
-install_emptydir(systemdstatedir)
-
 #####################################################################
 
 # Ensure that changes to the docs/ directory do not break the