fix: OCP images should disable cloud-kernel repo
This commit is contained in:
parent
46fabf40b7
commit
b20d289a5e
@ -17,7 +17,7 @@ network --bootproto=dhcp --device=link --activate
|
|||||||
url --url="https://download.rockylinux.org/stg/rocky/9/BaseOS/$basearch/os/"
|
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 "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 "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/"
|
repo --name=epel --cost=200 --baseurl="https://dl.fedoraproject.org/pub/epel/9/Everything/$basearch/"
|
||||||
# System authorization information
|
# System authorization information
|
||||||
auth --enableshadow --passalgo=sha512
|
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
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
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
|
dnf clean all
|
||||||
|
|
||||||
# XXX instance type markers - MUST match Rocky Infra expectation
|
# XXX instance type markers - MUST match Rocky Infra expectation
|
||||||
@ -385,6 +388,8 @@ if [ -d $DRACUT_CFG ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$(date) - OCI initramfs network modification script done."
|
echo "$(date) - OCI initramfs network modification script done."
|
||||||
|
|
||||||
|
|
||||||
true
|
true
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
Loading…
Reference in New Issue
Block a user