From 9a909cfdf668886f5c2dc934d6cc95c20cfee233 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Feb 16 2021 16:39:32 +0000 Subject: Add `%triggerun` to call systemctl preset for systemd-oomd Signed-off-by: Michel Alexandre Salim --- diff --git a/systemd.spec b/systemd.spec index 491e270..80c194c 100644 --- a/systemd.spec +++ b/systemd.spec @@ -755,6 +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 +systemctl --no-reload preset systemd-oomd.service &>/dev/null || : + %post libs %{?ldconfig}