mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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: b81ad1d960fc0555f6255a887f6a3b524893703e) Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f2a6123ba3
commit
0fecd492b2
@@ -136,6 +136,8 @@ do_install() {
|
|||||||
sed -i s%@UDEVD@%${rootlibexecdir}/systemd/systemd-udevd% ${D}${sysconfdir}/init.d/systemd-udevd
|
sed -i s%@UDEVD@%${rootlibexecdir}/systemd/systemd-udevd% ${D}${sysconfdir}/init.d/systemd-udevd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chown root:systemd-journal ${D}/${localstatedir}/log/journal
|
||||||
|
|
||||||
# Delete journal README, as log can be symlinked inside volatile.
|
# Delete journal README, as log can be symlinked inside volatile.
|
||||||
rm -f ${D}/${localstatedir}/log/README
|
rm -f ${D}/${localstatedir}/log/README
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user