From d6003ef0f70491bf2877524f3ee4d1925442bad6 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Thu, 5 Oct 2023 13:50:02 +0530 Subject: [PATCH] import the Rocky Linux GPG key manually --- includes/post/rpm-repos-enable.ksi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/post/rpm-repos-enable.ksi b/includes/post/rpm-repos-enable.ksi index 8d3e025..af10380 100644 --- a/includes/post/rpm-repos-enable.ksi +++ b/includes/post/rpm-repos-enable.ksi @@ -4,6 +4,9 @@ set -x MACHINE_ARCH="$(uname -m)" DNF_RELEASEVER="$(dnf config-manager --dump-variables | grep 'releasever' | awk '{print $3}')" +# import the key manually, since it does not get automatically get imported... +rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 + # Setup networking temporarily [ -f /etc/resolv.conf ] || echo "nameserver 1.1.1.1" > /etc/resolv.conf