]> git.ipfire.org Git - thirdparty/mkosi.git/commit
rpm: Fix root locations for GPG searching 3475/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 6 Feb 2025 11:05:05 +0000 (12:05 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 6 Feb 2025 11:40:37 +0000 (12:40 +0100)
commitfedc90c76b319a8219fe032748cfb939b57439c8
tree14d51b0ea3485e0751f29a9605c98d44a673d179
parentbb0e181fca771043a40c804fab8e5755733bd9a0
rpm: Fix root locations for GPG searching

We should always look in the tools tree for /usr/share/distribution-gpg-keys,
regardless of the value of ToolsTreeCertificates= since the setting has no
impact on which /usr/share/distribution-gpg-keys directory we end up using.

We should look in the host or tools tree for /etc/pki/rpm-gpg, based on the
value of ToolsTreeCertificates=, not in the sandbox tree, because the /etc/pki
directory from the host or tools tree will always be used and mounted over the
directory from the sandbox tree, so there's no point in looking for rpm gpg keys
in the sandbox tree at all.
mkosi/installer/rpm.py