Skip to content

Commit fb6693c

Browse files
praiskupxsuchy
authored andcommitted
Adapt to Changes/droppingOfCertPemFile
The change suggests us to use different bundle location: | needs to preferably use the defaults of the library or if they must, | use the /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem file | instead. Fixes: #1667
1 parent a8f6059 commit fb6693c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

mock/py/mockbuild/package_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def copy_certs(self):
408408
bundle_path = self.config['ssl_ca_bundle_path']
409409
if bundle_path:
410410
self.buildroot.root_log.debug('copying CA bundle into chroot')
411-
host_bundle = os.path.realpath('/etc/pki/tls/certs/ca-bundle.crt')
411+
host_bundle = os.path.realpath('/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem')
412412
chroot_bundle_path = self.buildroot.make_chroot_path(bundle_path)
413413
chroot_bundle_dir = os.path.dirname(chroot_bundle_path)
414414

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
The suggested location for the host CRT bundle is changing from
2+
`/etc/pki/tls/certs/ca-bundle.crt` to
3+
`/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem`, following the
4+
[droppingOfCertPemFile Fedora Change](https://fedoraproject.org/wiki/Changes/droppingOfCertPemFile).
5+
These bundles are automatically synced into Mock chroots for specific targets
6+
(e.g., openSUSE). The new bundle location is OK even for EPEL 8 hosts.
7+
Fixes [issue#1667][].

0 commit comments

Comments
 (0)