summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2015-03-12 20:20:11 +1100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-27 21:44:39 +0000
commit0fecd492b242599a7d4c6e13fea6b49dd6dc0fe5 (patch)
tree7b8d631f4963e38888170cd6e7ddc3d5417de9cf /meta/recipes-core
parentf2a6123ba3628980344cd2c04cbb4e025bbe9195 (diff)
downloadpoky-0fecd492b242599a7d4c6e13fea6b49dd6dc0fe5.tar.gz
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. (From OE-Core rev: b81ad1d960fc0555f6255a887f6a3b524893703e) Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/systemd/systemd_216.bb2
1 files changed, 2 insertions, 0 deletions
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() {
136 sed -i s%@UDEVD@%${rootlibexecdir}/systemd/systemd-udevd% ${D}${sysconfdir}/init.d/systemd-udevd 136 sed -i s%@UDEVD@%${rootlibexecdir}/systemd/systemd-udevd% ${D}${sysconfdir}/init.d/systemd-udevd
137 fi 137 fi
138 138
139 chown root:systemd-journal ${D}/${localstatedir}/log/journal
140
139 # Delete journal README, as log can be symlinked inside volatile. 141 # Delete journal README, as log can be symlinked inside volatile.
140 rm -f ${D}/${localstatedir}/log/README 142 rm -f ${D}/${localstatedir}/log/README
141 143