summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/systemd/systemd_256.bb5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-core/systemd/systemd_256.bb b/meta/recipes-core/systemd/systemd_256.bb
index 9bd59ef39f..3579c71891 100644
--- a/meta/recipes-core/systemd/systemd_256.bb
+++ b/meta/recipes-core/systemd/systemd_256.bb
@@ -314,9 +314,10 @@ do_install() {
314 fi 314 fi
315 315
316 if "${@'true' if oe.types.boolean(d.getVar('VOLATILE_LOG_DIR')) else 'false'}"; then 316 if "${@'true' if oe.types.boolean(d.getVar('VOLATILE_LOG_DIR')) else 'false'}"; then
317 # /var/log is typically a symbolic link to inside /var/volatile, 317 # base-files recipe provides /var/log which is a symlink to /var/volatile/log
318 # which is expected to be empty.
319 rm -rf ${D}${localstatedir}/log 318 rm -rf ${D}${localstatedir}/log
319 printf 'L\t\t%s/log\t\t-\t-\t-\t-\t%s/volatile/log\n' "${localstatedir}" \
320 "${localstatedir}" >>${D}${nonarch_libdir}/tmpfiles.d/00-create-volatile.conf
320 elif [ -e ${D}${localstatedir}/log/journal ]; then 321 elif [ -e ${D}${localstatedir}/log/journal ]; then
321 chown root:systemd-journal ${D}${localstatedir}/log/journal 322 chown root:systemd-journal ${D}${localstatedir}/log/journal
322 323