Skip to content

Commit

Permalink
DROP_COMMIT_BEFORE_MERGE: drop some actions around certs
Browse files Browse the repository at this point in the history
Temporarily disabled, not sure now why. The commit will be for
sure changed or dropped before the merge.
  • Loading branch information
pirat89 committed Apr 19, 2024
1 parent 9d52704 commit d1e153c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def _copy_certificates(context, target_userspace):
backup_pki = os.path.join(target_userspace, 'etc', 'pki.backup')

with mounting.NspawnActions(base_dir=target_userspace) as target_context:
files_owned_by_rpms = _get_files_owned_by_rpms(target_context, '/etc/pki', recursive=True)
files_owned_by_rpms = _get_files_owned_by_rpms(target_context, '/etc/pki', recursive=False)
api.current_logger().debug('Files owned by rpms: {}'.format(' '.join(files_owned_by_rpms)))

# Backup container /etc/pki
Expand Down Expand Up @@ -626,7 +626,7 @@ def _prep_repository_access(context, target_userspace):
# NOTE(dkubek): context.call(['update-ca-trust']) seems to not be working.
# I am not really sure why. The changes to files are not
# being written to disk.
run(["chroot", target_userspace, "/bin/bash", "-c", "su - -c update-ca-trust"])
#run(["chroot", target_userspace, "/bin/bash", "-c", "su - -c update-ca-trust"])

if not rhsm.skip_rhsm():
run(['rm', '-rf', os.path.join(target_etc, 'rhsm')])
Expand Down

0 comments on commit d1e153c

Please sign in to comment.