summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2015-03-12 09:18:56 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-12 14:46:59 (GMT)
commitb0c18202615849fc7a35d6f23afc0696dd0e952f (patch)
treeaa54e7949d6dfef6ccbde234328d1bde328fb24d
parentccd470ba5fd739d3ca7c0e74c828642e9b9828c7 (diff)
downloadpoky-b0c18202615849fc7a35d6f23afc0696dd0e952f.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) (From OE-Core rev: e64cee7ccf9dedbadc3a63e4ed3eb15172ef4403) 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> Signed-off-by: Saul Wold <sgw@linux.intel.com> Conflicts: meta/recipes-core/systemd/systemd_219.bb Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/systemd/systemd_211.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd_211.bb b/meta/recipes-core/systemd/systemd_211.bb
index 567c323..93d9c99 100644
--- a/meta/recipes-core/systemd/systemd_211.bb
+++ b/meta/recipes-core/systemd/systemd_211.bb
@@ -124,6 +124,7 @@ do_install() {
124 sed -i s%@UDEVD@%${rootlibexecdir}/systemd/systemd-udevd% ${D}${sysconfdir}/init.d/systemd-udevd 124 sed -i s%@UDEVD@%${rootlibexecdir}/systemd/systemd-udevd% ${D}${sysconfdir}/init.d/systemd-udevd
125 fi 125 fi
126 126
127 chown root:systemd-journal ${D}/${localstatedir}/log/journal
127 # Delete journal README, as log can be symlinked inside volatile. 128 # Delete journal README, as log can be symlinked inside volatile.
128 rm -f ${D}/${localstatedir}/log/README 129 rm -f ${D}/${localstatedir}/log/README
129} 130}