From 2a648cdec04c32da2bbb1af917760112230d97f8 Mon Sep 17 00:00:00 2001 From: Kyle Walker Date: Fri, 4 Jun 2021 16:15:49 -0400 Subject: [PATCH] Don't create /var/log/journal during package installation Related: rhbz#1968064 Signed-off-by: Kyle Walker --- systemd.spec | 4 ---- 1 file changed, 4 deletions(-) diff --git a/systemd.spec b/systemd.spec index 1489804..80d573e 100644 --- a/systemd.spec +++ b/systemd.spec @@ -644,10 +644,6 @@ systemctl daemon-reexec &>/dev/null || { } if [ $1 -eq 1 ]; then - # create /var/log/journal only on initial installation, - # and only if it's writable (it won't be in rpm-ostree). - [ -w %{_localstatedir} ] && mkdir -p %{_localstatedir}/log/journal - [ -w %{_localstatedir} ] && journalctl --update-catalog || : systemd-tmpfiles --create &>/dev/null || : fi