From e4dbbeb677150aff1514dfa20f4dfc1735201b93 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Wed, 23 Nov 2022 23:39:14 -0500 Subject: [PATCH] install against stg --- Rocky-9-Vagrant-Vbox.ks | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Rocky-9-Vagrant-Vbox.ks b/Rocky-9-Vagrant-Vbox.ks index 605df3e..3caf70f 100644 --- a/Rocky-9-Vagrant-Vbox.ks +++ b/Rocky-9-Vagrant-Vbox.ks @@ -101,7 +101,11 @@ EOF set -x # Install VBoxGuestAdditions for installed kernel kver=$(rpm -q --queryformat="%{VERSION}-%{RELEASE}.%{ARCH}" kernel) +echo "stg/rocky" > /etc/dnf/vars/contentdir +sed -i 's/^#baseurl/baseurl/g;s/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/rocky*repo dnf -y install kernel-headers-$kver kernel-devel gcc make perl elfutils-libelf-devel +sed -i 's/^baseurl/#baseurl/g;s/^#mirrorlist/mirrorlist/g' /etc/yum.repos.d/rocky*repo +echo "pub/rocky" > /etc/dnf/vars/contentdir curl -L -o /tmp/vboxadditions.iso https://download.virtualbox.org/virtualbox/6.1.40/VBoxGuestAdditions_6.1.40.iso mkdir -p /media/VBoxGuestAdditions mount -o loop,ro /tmp/vboxadditions.iso /media/VBoxGuestAdditions