Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA-376240: Check signature of driver disks/supp packs during host installation #134

Open
wants to merge 1 commit into
base: release/xs8
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ def __init__(self, accessor):
self._controlpkg = dom.documentElement.getAttribute('control')
self._identifier = dom.documentElement.getAttribute('name-label')
self._targets = [self._controlpkg, 'update-' + self._identifier]
self._key = dom.documentElement.getAttribute('key')
except Exception as e:
accessor.finish()
logger.logException(e)
Expand All @@ -388,6 +389,13 @@ def __init__(self, accessor):
def name(self):
return self._identifier

def _repo_config(self):
return """
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/%s
""" % self._key


class DriverUpdateYumRepository(UpdateYumRepository):
"""Represents a Yum repository containing packages and associated meta data for a driver disk."""

Expand Down