From b20d289a5e5c37ba069ed2f826444c5809663378 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Mon, 10 Apr 2023 13:52:38 -0400 Subject: [PATCH] fix: OCP images should disable cloud-kernel repo --- Rocky-9-OCP.ks | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Rocky-9-OCP.ks b/Rocky-9-OCP.ks index c446ab9..13ec5d3 100644 --- a/Rocky-9-OCP.ks +++ b/Rocky-9-OCP.ks @@ -17,7 +17,7 @@ network --bootproto=dhcp --device=link --activate url --url="https://download.rockylinux.org/stg/rocky/9/BaseOS/$basearch/os/" repo --name "extras" --baseurl="https://dl.rockylinux.org/stg/rocky/9/extras/$basearch/os/" repo --name "crb" --baseurl="https://dl.rockylinux.org/stg/rocky/9/CRB/$basearch/os/" -repo --name "sig-cloud-common" --baseurl="https://yumrepofs.build.resf.org/v1/projects/15016370-1410-4459-a1a2-a1576041fd19/repo/cloud-common/$basearch/" --cost=100 +repo --name "sig-cloud-common" --baseurl="https://yumrepofs.build.resf.org/v1/projects/15016370-1410-4459-a1a2-a1576041fd19/repo/cloud-common/$basearch/" --includepkgs="oci-utils,python3-circuitbreaker,python3-daemon,python3-sdnotify,python39-oci-sdk" --cost=100 repo --name=epel --cost=200 --baseurl="https://dl.fedoraproject.org/pub/epel/9/Everything/$basearch/" # System authorization information auth --enableshadow --passalgo=sha512 @@ -141,6 +141,9 @@ sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg +# disable cloud kernel repo as it's not needed +sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/Rocky-SIG-Cloud-Kernel.repo + dnf clean all # XXX instance type markers - MUST match Rocky Infra expectation @@ -385,6 +388,8 @@ if [ -d $DRACUT_CFG ]; then fi echo "$(date) - OCI initramfs network modification script done." + + true %end