From: Christian Hesse Date: Fri, 22 Nov 2024 10:59:26 +0000 (+0100) Subject: link README.logs from tmpfiles.d/legacy.conf only if available X-Git-Tag: v257-rc3~50 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=c946b1357562e8643575dbbda2c8c6fff2c0e4f7;p=systemd%2F.git link README.logs from tmpfiles.d/legacy.conf only if available The file README.logs is installed only if SysVInit support is enabled. Thus the link should depend on it as well. --- diff --git a/tmpfiles.d/legacy.conf.in b/tmpfiles.d/legacy.conf.in index b475500e58..6726c6c0e5 100644 --- a/tmpfiles.d/legacy.conf.in +++ b/tmpfiles.d/legacy.conf.in @@ -13,11 +13,12 @@ d /run/lock 0755 root root - L /var/lock - - - - ../run/lock + +{% if HAVE_SYSV_COMPAT %} {% if CREATE_LOG_DIRS %} L$ /var/log/README - - - - ../..{{DOC_DIR}}/README.logs {% endif %} -{% if HAVE_SYSV_COMPAT %} # /run/lock/subsys is used for serializing SysV service execution, and # hence without use on SysV-less systems. d /run/lock/subsys 0755 root root -