summaryrefslogtreecommitdiffstats
path: root/meta
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 /meta
parentda8a15a7d6aba0dbbea15229ee3118644d0d6e34 (diff)
downloadast2050-yocto-poky-daaafb4b5b715a9a3c04a8bcb5f42f7ab7d95543.zip
ast2050-yocto-poky-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>
Diffstat (limited to 'meta')
-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 238ee67..ff29a3f 100644
--- a/meta/recipes-core/systemd/systemd_219.bb
+++ b/meta/recipes-core/systemd/systemd_219.bb
@@ -154,6 +154,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
OpenPOWER on IntegriCloud