Skip to content

VM installation fails on nested CentOS because of missing EPEL GPG key #395

@comps

Description

@comps
Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9]

This is caused by us copying all repositories from the host to the VM, which happens to work fine with RH-signed or CentOS-signed repos, because the keys are included in the base OS installation, but breaks when the host OS has extra repositories added via RPM installation (ie. epel-release) because the repos get copied without the keys imported.

We should probably have some logic that lists / copies over imported GPG keys from host to guest, along with /etc/pki/rpm-gpg/* files (probably transferred over as %files in in RpmPack).

Alternatively, we should avoid copying repos with non-default GPG keys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions