tmpfiles: narrow scope of HAVE_SYSV_COMPAT condition for legacy.conf
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 21 Nov 2024 09:12:56 +0000 (10:12 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 21 Nov 2024 17:32:46 +0000 (18:32 +0100)
commit5ca9149464c100548701ab0839712c57f67e2652
tree01ff2243cb5026d1c73ce85850d44e65f08b049c
parentd5bb359429796d0859db9d85b59574919d86a60d
tmpfiles: narrow scope of HAVE_SYSV_COMPAT condition for legacy.conf

That file contains a bunch of entries of which only some are related to SysV.
The rest are just "traditional APIs" that need to stay. In particular,
/var/lock a.k.a. /run/lock is used by many programs (LVM, iscsi, alsactl).
Similarly, the README about /var/log is something that should stay as long as
we have people migrating from older systems or using the copiuos documentation
that mentions /var/log/messages.txt on the Internet.

/var/lock/subsys is only used by sysvinit, and our code to support /forcefsck,
/fastboot, and /forcequotacheck is conditionalized on HAVE_SYSV_COMPAT, so
conditionalize those here on HAVE_SYSV_COMPAT too.
tmpfiles.d/legacy.conf.in
tmpfiles.d/meson.build