diff --git a/templates/prep-scripts/redhat_prep.sh.j2 b/templates/prep-scripts/redhat_prep.sh.j2 index 965a6d7d..0b73afd7 100644 --- a/templates/prep-scripts/redhat_prep.sh.j2 +++ b/templates/prep-scripts/redhat_prep.sh.j2 @@ -6,7 +6,11 @@ set -e -x {% include 'templates/prep-scripts/_container_sys_setup.sh.j2' %} if [[ -d "/etc/pki/rpm-gpg" ]]; then - rpm --import /etc/pki/rpm-gpg/* || true + for key in /etc/pki/rpm-gpg/*; do + if [[ "${key}" != *-PQC ]]; then + rpm --import "${key}" || true + fi + done fi # The containers do not need the LXC repository (only hosts need it).