From 0752c79282b1cc9699743e719518e6c341d50a3a Mon Sep 17 00:00:00 2001 From: Jonathan Liu Date: Thu, 12 Mar 2015 20:18:56 +1100 Subject: 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: Ross Burton --- meta/recipes-core/systemd/systemd_219.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/recipes-core/systemd') 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() { 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 -- cgit 1.2.3-korg