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