qubes-release: schedule keys import after update

It isn't possible to import rpm signing keys during update, because
rpm itself holds a lock. Schedule the operation after update using
systemd-run.

Fixes QubesOS/qubes-issues#3756
This commit is contained in:
Marek Marczykowski-Górecki 2018-05-30 04:04:59 +02:00
parent f6bfe11ab8
commit 7d5bb6ff81
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -86,7 +86,7 @@ EOF
%posttrans
# Import all keys b/c rpm won't do it automatically (as opposite to yum)
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-* || true
systemd-run --on-active=5min rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-*
%clean