From 94db59f374be6fb0b35a5691e425c01c10ff42bf Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Mon, 13 Nov 2023 17:38:53 +0530 Subject: [PATCH] setup networking before downloading the AltArch signing key --- includes/post/rpm-repos-enable.ksi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/post/rpm-repos-enable.ksi b/includes/post/rpm-repos-enable.ksi index a21664f..5803c2d 100644 --- a/includes/post/rpm-repos-enable.ksi +++ b/includes/post/rpm-repos-enable.ksi @@ -4,15 +4,15 @@ set -x MACHINE_ARCH="$(uname -m)" DNF_RELEASEVER="$(dnf config-manager --dump-variables | grep 'releasever' | awk '{print $3}')" +# Setup networking temporarily +[ -f /etc/resolv.conf ] || echo "nameserver 1.1.1.1" > /etc/resolv.conf + # import the key manually, since it does not get automatically get imported... wget "https://download.rockylinux.org/pub/sig/${DNF_RELEASEVER}/altarch/${MACHINE_ARCH}/altarch-common/RPM-GPG-KEY-Rocky-SIG-AltArch" rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 rpm --import RPM-GPG-KEY-Rocky-SIG-AltArch rm RPM-GPG-KEY-Rocky-SIG-AltArch -# Setup networking temporarily -[ -f /etc/resolv.conf ] || echo "nameserver 1.1.1.1" > /etc/resolv.conf - # This repository is a given since it provides 'uboot-images-armv8' and # 'uboot-tools', which are **required**. dnf config-manager --assumeyes --add-repo "https://download.rockylinux.org/pub/sig/${DNF_RELEASEVER}/altarch/${MACHINE_ARCH}/altarch-common"