Skip to content

Draft: Avoid adding /var/log into the package

Max Gautier requested to merge vannten/systemd:dont_install_var_log into main
  1. Explicitely configure journald to use persistent storage rather than relying on the default (auto) and creating /var/log/journal.
  2. Use meson option (create-log-dirs=false) instead of removing /var/log/journal/remote. /var/log/journal will be created by journald on startup (because of 1.) /var/log/journal/remote will be created systemd-journal-remote on startup (via LogsDirectory) -> this has the nice side effect of reducing the tmpfiles.legacy.in patch to 1 line.

Motivated by: archlinux/rfcs#3

Merge request reports