From: Jonathan Liu Date: Thu, 12 Mar 2015 09:20:11 +0000 (+1100) Subject: systemd: fix /var/log/journal ownership X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=b81ad1d960fc0555f6255a887f6a3b524893703e;p=openembedded-core.git systemd: fix /var/log/journal ownership The ownership needs to be explicitly set otherwise it inherits the user and group id of the build user. Signed-off-by: Jonathan Liu Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/systemd/systemd_216.bb b/meta/recipes-core/systemd/systemd_216.bb index 3852841029..1eb401988e 100644 --- a/meta/recipes-core/systemd/systemd_216.bb +++ b/meta/recipes-core/systemd/systemd_216.bb @@ -136,6 +136,8 @@ do_install() { sed -i s%@UDEVD@%${rootlibexecdir}/systemd/systemd-udevd% ${D}${sysconfdir}/init.d/systemd-udevd fi + chown root:systemd-journal ${D}/${localstatedir}/log/journal + # Delete journal README, as log can be symlinked inside volatile. rm -f ${D}/${localstatedir}/log/README