#50 Add `%triggerun` to call systemctl preset for systemd-oomd
Merged 3 years ago by zbyszek. Opened 3 years ago by salimma.
rpms/ salimma/systemd oomd-fixes  into  rawhide

file modified
+4
@@ -755,6 +755,10 @@ 

    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}

  

Per discussion in IRC, this is needed. Not adding ConditionPathExists for config files since oomd has a configuration folder, and we can't be sure what files exist there.

Not sure if we should trigger on the version of fedora-repos that ship the preset enabling oomd, but users will likely get both around the same time (when they upgrade to F34) so both should be equivalent, hopefully?

Signed-off-by: Michel Alexandre Salim salimma@fedoraproject.org

Pull-Request has been merged by zbyszek

3 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

Metadata