From e3d0c7d03aedb5e18576ebffc4f491eaaba67e7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 28 Sep 2023 19:43:17 +0200 Subject: [PATCH] Redo preset call on upgrades The preset was changed to 'enable', as part of https://fedoraproject.org/wiki/Changes/EnableFwupdRefreshByDefault (see https://bugzilla.redhat.com/show_bug.cgi?id=2236498). To update existing systems on installations, this adds a trigger scriptlet that will fire when upgrading from older releases to F39 or F40. --- fwupd.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fwupd.spec b/fwupd.spec index 3471353..eb34f19 100644 --- a/fwupd.spec +++ b/fwupd.spec @@ -275,6 +275,10 @@ done %postun %systemd_postun_with_restart fwupd.service fwupd-refresh.timer +%triggerun -- fedora-release-common < 39-0.28 +# For upgrades from versions before fwupd-refresh.timer was enabled by default +systemctl --no-reload preset fwupd-refresh.timer &>/dev/null || : + %files -f %{name}.lang %doc README.md %license COPYING