-
-
Notifications
You must be signed in to change notification settings - Fork 53
Labels
C: updatesThis issue pertains to updating Qubes OS.This issue pertains to updating Qubes OS.P: defaultPriority: default. Default priority for new issues, to be replaced given sufficient information.Priority: default. Default priority for new issues, to be replaced given sufficient information.affects-4.2This issue affects Qubes OS 4.2.This issue affects Qubes OS 4.2.diagnosedTechnical diagnosis of this issue has been performed.Technical diagnosis of this issue has been performed.pr submittedA pull request has been submitted for this issue.A pull request has been submitted for this issue.
Description
Qubes OS release
Qubes 4.2
Brief summary
Following the docs to install a qubes-contrib package fails when the repo is installed just before installing a contrib package (see in OpenQA).
Steps to reproduce
In dom0
sudo qubes-dom0-update -y qubes-repo-contrib
# wait 10 seconds to simulate user typing
sudo qubes-dom0-update -y --clean securedrop-workstation-keyring
Expected behavior
Last command succeeds.
Actual behavior
Command fails:

Additional information
The 5 minute delay introduced here seems to be the cause of the issue. Dom0 only imports the signature 5 minutes after the install. Therefore, when sys-firewall sends the newly fetched contrib package, dom0 doesn't yet have the signature imported and will promptly fail without a clear message.
It could either have a shorter delay, or it could guard against longer RPM transactions with a loop:
%posttrans -n qubes-repo-contrib
-systemd-run --on-active=5min rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-qubes-4-contrib-fedora
+systemd-run --on-active=5sec sh -c "while ! rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-qubes-4-contrib-fedora; do sleep 5; done"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C: updatesThis issue pertains to updating Qubes OS.This issue pertains to updating Qubes OS.P: defaultPriority: default. Default priority for new issues, to be replaced given sufficient information.Priority: default. Default priority for new issues, to be replaced given sufficient information.affects-4.2This issue affects Qubes OS 4.2.This issue affects Qubes OS 4.2.diagnosedTechnical diagnosis of this issue has been performed.Technical diagnosis of this issue has been performed.pr submittedA pull request has been submitted for this issue.A pull request has been submitted for this issue.