Don't create /var/log/journal during package installation

Related: rhbz#1968064

Signed-off-by: Kyle Walker <kwalker@redhat.com>
This commit is contained in:
Kyle Walker 2021-06-04 16:15:49 -04:00 committed by Jan Macku
parent 6b062019ed
commit 2a648cdec0
1 changed files with 0 additions and 4 deletions

View File

@ -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