On Wed, 2021-10-27 at 18:37 +0200, Peter Kjellerstedt wrote: > /var/log is typically a symbolic link to inside /var/volatile, which > is expected to be empty. > > Signed-off-by: Peter Kjellerstedt <peter.kjellerst...@axis.com> > --- > meta/recipes-core/systemd/systemd_249.5.bb | 11 ++++------- > 1 file changed, 4 insertions(+), 7 deletions(-) > > diff --git a/meta/recipes-core/systemd/systemd_249.5.bb > b/meta/recipes-core/systemd/systemd_249.5.bb > index d87f54bf16..f2e6a79d6c 100644 > --- a/meta/recipes-core/systemd/systemd_249.5.bb > +++ b/meta/recipes-core/systemd/systemd_249.5.bb > @@ -270,13 +270,10 @@ do_install() { > install -Dm 0755 ${S}/src/systemctl/systemd-sysv- > install.SKELETON ${D}${systemd_system_unitdir}d-sysv-install > fi > > - chown root:systemd-journal ${D}/${localstatedir}/log/journal
Having /var/log/journal exist (on systems that don't symbolically link /var/log inside /var/volatile) by default will cause systemd to persistently log data. I suspect removing this is going to negatively impact some users. > - > - # Delete journal README, as log can be symlinked inside > volatile. > - rm -f ${D}/${localstatedir}/log/README > - > - # journal-remote creates this at start > - rm -rf ${D}/${localstatedir}/log/journal/remote > + # /var/log is typically a symbolic link to inside > /var/volatile, which > + # is expected to be empty. This remove /var/log/README and > + # /var/log/journal/. > + rm -rf ${D}${localstatedir}/log > > install -d > ${D}${systemd_system_unitdir}/graphical.target.wants > install -d ${D}${systemd_system_unitdir}/multi- > user.target.wants > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157559): https://lists.openembedded.org/g/openembedded-core/message/157559 Mute This Topic: https://lists.openembedded.org/mt/86632211/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-