Open praiskup opened 1 year ago
Forwarded to C9S: https://bugzilla.redhat.com/show_bug.cgi?id=2184951
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial is the workaround
From internal mail by Fabian A.
I found that there was a gnupg2 rebase, which now deprecates fully sha-1 algo : https://gitlab.com/redhat/centos-stream/rpms/gnupg2/-/commit/82c38c29114f0bdb64b7d9f8c0d89afffc7b560d
Problem is that the centos stream key itself is still signed (from RH HSM) with sha-1 :
This should be fixed now (since 10:31 CET).
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial is the workaround
This can't easily be done (by user) in the bootstrap chroot, though. Work-around for mock is to use --no-bootstrap-chroot.
@xsuchy Still not working. Tested with latest versions versions available:
mock-centos-sig-configs-0.5.2-1.el9.noarch
mock-filesystem-4.0-1.el9.noarch
mock-core-configs-38.5-1.el9.noarch
mock-4.0-1.el9.noarch
Output of
Current workaround is to add the following lines into ~/.config/mock.cfg
:
config_opts['use_bootstrap_image'] = True
config_opts['bootstrap_image'] = 'centos:stream9'
Hm, doesn't happen to me now:
Importing GPG key 0x8483C65D:
Userid : "CentOS (CentOS Official Signing Key) <security@centos.org>"
Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
From : /usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official
Key imported successfully
Extra Packages for Enterprise Linux 9 - x86_64 1.6 MB/s | 1.6 kB 00:00
Importing GPG key 0x3228467C:
Userid : "Fedora (epel9) <epel@fedoraproject.org>"
Fingerprint: FF8A D134 4597 106E CE81 3B91 8A38 72BF 3228 467C
From : /usr/share/distribution-gpg-keys/epel/RPM-GPG-KEY-EPEL-9
Key imported successfully
Both CentOS and EPEL keys are imported correctly.
Even in Fedora Copr: https://copr.fedorainfracloud.org/coprs/praiskup/test-centos-stream-9/build/5983305/ Do I miss some important step-to-reproduce?
I'll try to spin-up a fresh VM with CentOS 9 and then try again.
Without bootstrap it just works (with DNF from F37). Otherwise, bootstrap is installed just fine (importing C9S chroot keys), then installing chroot from the bootstrap chroot fails because only EPEL 9 keys are imported:
See that only
0x3228467C
is being imported.