Skip to content

qubes-repo-contrib: Fails to install contrib package immediately after installing qubes-repo-contrib #10311

@deeplow

Description

@deeplow

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:

Image

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"

Metadata

Metadata

Assignees

Labels

C: updatesThis issue pertains to updating Qubes OS.P: defaultPriority: default. Default priority for new issues, to be replaced given sufficient information.affects-4.2This issue affects Qubes OS 4.2.diagnosedTechnical diagnosis of this issue has been performed.pr submittedA pull request has been submitted for this issue.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions