From 0257583091a9b13d4ca7012ee3632f67af009b85 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Feb 16 2021 17:59:45 +0000 Subject: Rename trigger to appease rpm --- diff --git a/systemd.spec b/systemd.spec index 80c194c..505ae8a 100644 --- a/systemd.spec +++ b/systemd.spec @@ -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