Skip to content

Commit

Permalink
systemd: Remove /var/log/journal
Browse files Browse the repository at this point in the history
If `/var/log/journal` is present, systemd-journald flushes the log to
the disk, which we do not want yet, as we still use syslog. Therefore,
remove the directory.

We probably had manually deleted it on all systems with systemd 237, and
didn’t update the bee file accordingly, so that the logs were kept when
updating to systemd 239.
  • Loading branch information
pmenzel committed Jan 15, 2019
1 parent 26cd193 commit b54d163
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions systemd.be0
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ mee_install_post() {
rm -rv ${D}/etc/systemd/system/dbus-org.freedesktop.network1.service
rm -rv ${D}/etc/systemd/system/multi-user.target.wants/systemd-networkd.service
rm -rv ${D}/etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service

# Remove directory to disable persistent storage of logs
rm -rv ${D}/var/log/journal
}

###############################################################################
Expand Down

0 comments on commit b54d163

Please sign in to comment.