diff options
author | Jonathan Liu <net147@gmail.com> | 2015-03-12 20:20:11 +1100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-27 17:59:24 +0000 |
commit | b81ad1d960fc0555f6255a887f6a3b524893703e (patch) | |
tree | 13c6d336428f03cd81e69013c2818d22eaae9dc5 /meta/recipes-core | |
parent | 60c0b80048e1f8aae1a4aaa3619c84496a111ae2 (diff) | |
download | openembedded-core-contrib-b81ad1d960fc0555f6255a887f6a3b524893703e.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.
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.bb | 2 |
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() { 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 |