summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2015-03-12 20:18:56 +1100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-16 17:42:09 +0000
commitdaaafb4b5b715a9a3c04a8bcb5f42f7ab7d95543 (patch)
tree7f40ee9f4890d35843a91409b9ab1463bd158618
parentda8a15a7d6aba0dbbea15229ee3118644d0d6e34 (diff)
downloadpoky-daaafb4b5b715a9a3c04a8bcb5f42f7ab7d95543.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: 0752c79282b1cc9699743e719518e6c341d50a3a) Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/systemd/systemd_219.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd_219.bb b/meta/recipes-core/systemd/systemd_219.bb
index 238ee6707b..ff29a3fecf 100644
--- a/meta/recipes-core/systemd/systemd_219.bb
+++ b/meta/recipes-core/systemd/systemd_219.bb
@@ -154,6 +154,8 @@ do_install() {
154 sed -i s%@UDEVD@%${rootlibexecdir}/systemd/systemd-udevd% ${D}${sysconfdir}/init.d/systemd-udevd 154 sed -i s%@UDEVD@%${rootlibexecdir}/systemd/systemd-udevd% ${D}${sysconfdir}/init.d/systemd-udevd
155 fi 155 fi
156 156
157 chown root:systemd-journal ${D}/${localstatedir}/log/journal
158
157 # Delete journal README, as log can be symlinked inside volatile. 159 # Delete journal README, as log can be symlinked inside volatile.
158 rm -f ${D}/${localstatedir}/log/README 160 rm -f ${D}/${localstatedir}/log/README
159 161