From d1f901a01214eb7e743dda70d02b7033dd38fa9e Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 27 Nov 2020 09:24:21 +0000 Subject: [PATCH] trivial: Ensure old ODM remotes are fixed on upgrade --- contrib/fwupd.spec.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/fwupd.spec.in b/contrib/fwupd.spec.in index 321a7b4cc..91f8f15ba 100644 --- a/contrib/fwupd.spec.in +++ b/contrib/fwupd.spec.in @@ -269,6 +269,11 @@ mkdir -p --mode=0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/fwupd/gnupg %post %systemd_post fwupd.service +# change vendor-installed remotes to use the default keyring type +for fn in /etc/fwupd/remotes.d/*.conf; + do sed -i 's/Keyring=gpg/#Keyring=pkcs/g' "$fn"; +done + %preun %systemd_preun fwupd.service