fix: OCP images should disable cloud-kernel repo

This commit is contained in:
Neil Hanlon 2023-04-10 13:52:38 -04:00
parent 46fabf40b7
commit b20d289a5e
Signed by: neil
GPG Key ID: 705BC21EC3C70F34
1 changed files with 6 additions and 1 deletions

View File

@ -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