diff options
-rw-r--r-- | meta/recipes-core/systemd/systemd_255.4.bb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-core/systemd/systemd_255.4.bb b/meta/recipes-core/systemd/systemd_255.4.bb index f58a1bc2b6..0ccca8a567 100644 --- a/meta/recipes-core/systemd/systemd_255.4.bb +++ b/meta/recipes-core/systemd/systemd_255.4.bb | |||
@@ -307,9 +307,10 @@ do_install() { | |||
307 | fi | 307 | fi |
308 | 308 | ||
309 | if "${@'true' if oe.types.boolean(d.getVar('VOLATILE_LOG_DIR')) else 'false'}"; then | 309 | if "${@'true' if oe.types.boolean(d.getVar('VOLATILE_LOG_DIR')) else 'false'}"; then |
310 | # /var/log is typically a symbolic link to inside /var/volatile, | 310 | # base-files recipe provides /var/log which is a symlink to /var/volatile/log |
311 | # which is expected to be empty. | ||
312 | rm -rf ${D}${localstatedir}/log | 311 | rm -rf ${D}${localstatedir}/log |
312 | printf 'L\t\t%s/log\t\t-\t-\t-\t-\t%s/volatile/log\n' "${localstatedir}" \ | ||
313 | "${localstatedir}" >>${D}${nonarch_libdir}/tmpfiles.d/00-create-volatile.conf | ||
313 | elif [ -e ${D}${localstatedir}/log/journal ]; then | 314 | elif [ -e ${D}${localstatedir}/log/journal ]; then |
314 | chown root:systemd-journal ${D}${localstatedir}/log/journal | 315 | chown root:systemd-journal ${D}${localstatedir}/log/journal |
315 | 316 | ||