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:
parent
6b062019ed
commit
2a648cdec0
@ -644,10 +644,6 @@ systemctl daemon-reexec &>/dev/null || {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [ $1 -eq 1 ]; then
|
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 || :
|
[ -w %{_localstatedir} ] && journalctl --update-catalog || :
|
||||||
systemd-tmpfiles --create &>/dev/null || :
|
systemd-tmpfiles --create &>/dev/null || :
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user