Rename trigger to appease rpm

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-02-16 18:59:45 +01:00
parent 9a909cfdf6
commit 0257583091

View File

@ -755,8 +755,10 @@ if systemctl -q is-enabled systemd-resolved.service &>/dev/null; then
systemctl start systemd-resolved.service &>/dev/null || :
fi
%triggerun -- systemd < 247.3-2
# This is for upgrades from previous versions before oomd-defaults is available
%triggerpostun -- systemd < 247.3-2
# This is for upgrades from previous versions before oomd-defaults is available.
# We use %%triggerpostun here because rpm doesn't allow a second %%triggerun with
# a different package version.
systemctl --no-reload preset systemd-oomd.service &>/dev/null || :
%post libs