summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2024-03-06 22:56:38 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-07 17:27:51 +0000
commitda9db878a15ab7f88ab41650d6f25768ac44fd43 (patch)
tree0300edc4c9851ea10d32244d87dba38a3f9ad020 /meta/recipes-core
parent66cf8644c290a46fcf8b3a4e44554c702b12e986 (diff)
downloadpoky-da9db878a15ab7f88ab41650d6f25768ac44fd43.tar.gz
systemd: fix dead link /var/log/README
There are 2 issues here: First, in package systemd, there is a file /usr/lib/tmpfile.d/legacy.conf, which will create a symlink to /usr/share/doc/systemd/README.logs during boot time. But for oe, /usr/share/doc/systemd/README.logs is packaged in systemd-doc, which will make /var/log/README is dead link. Second, the symlink /var/log/README in legacy.conf use relative path: "L /var/log/README - - - - ../../usr/share/doc/systemd/README.logs" But for oe, when VOLATILE_LOG_DIR is true, /var/log is a link to /var/volatile/log, so /var/log/README need link to ../../../usr/share/doc/systemd/README.logs, while VOLATILE_LOG_DIR is false, /var/log is a dir, so /var/log/README need link to ../../usr/share/doc/systemd/README.logs. So current symlink in legacy.conf will also make it a dead link when VOLATILE_LOG_DIR is true. Turn off CREATE_LOG_DIRS to avoid these issues. (From OE-Core rev: 18d46e11d85da1f6feaba5a135931e43060024d6) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/systemd/systemd_255.4.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd_255.4.bb b/meta/recipes-core/systemd/systemd_255.4.bb
index a907d60e84..9fd7eccb38 100644
--- a/meta/recipes-core/systemd/systemd_255.4.bb
+++ b/meta/recipes-core/systemd/systemd_255.4.bb
@@ -247,6 +247,7 @@ EXTRA_OEMESON += "-Dnobody-user=nobody \
247 -Dsystem-uid-max=999 \ 247 -Dsystem-uid-max=999 \
248 -Dsystem-alloc-gid-min=101 \ 248 -Dsystem-alloc-gid-min=101 \
249 -Dsystem-gid-max=999 \ 249 -Dsystem-gid-max=999 \
250 -Dcreate-log-dirs=false \
250 " 251 "
251 252
252# Hardcode target binary paths to avoid using paths from sysroot or worse 253# Hardcode target binary paths to avoid using paths from sysroot or worse