Skip to content

Commit

Permalink
Merge pull request #1561 from jlebon/pr/c9s-extensions-container
Browse files Browse the repository at this point in the history
NO-JIRA: Various fixes for c9s variant
  • Loading branch information
openshift-merge-bot[bot] committed Aug 7, 2024
2 parents 1eaeec6 + d28cc0f commit ac1dd83
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions extensions/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ ADD . .
ARG COSA
ARG VARIANT
RUN if [[ -z "$COSA" ]] ; then ci/get-ocp-repo.sh ; fi
# on SCOS, we need to add the GPG keys of the various SIGs we need
RUN if rpm -q centos-stream-release; then dnf install -y centos-release-{cloud,nfv,virt}-common; fi
RUN mkdir -p /usr/share/distribution-gpg-keys/centos
RUN ln -s /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial /usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official
RUN ln -s {/etc/pki/rpm-gpg,/usr/share/distribution-gpg-keys/centos}/RPM-GPG-KEY-CentOS-SIG-Cloud
Expand Down
4 changes: 4 additions & 0 deletions tests/kola/rpm-ostree/replace-rt-kernel/data/c9s.repo
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This repo is based on the c9s.repo file at the top-level, but *always* refers
# to the mirrors and never to the latest compose output. For more information, see:
# https://github.com/openshift/os/commit/15c7bf96b70b014f6dd55f25195cf1a341b6c6e0

[baseos]
name=CentOS Stream 9 - BaseOS
baseurl=http://mirror.stream.centos.org/9-stream/BaseOS/$basearch/os
Expand Down
8 changes: 4 additions & 4 deletions tests/kola/rpm-ostree/replace-rt-kernel/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ case "${AUTOPKGTEST_REBOOT_MARK:-}" in
runv rm -rf /etc/yum.repos.d/*
runv cp "$KOLA_EXT_DATA/$repo_name" /etc/yum.repos.d/cs.repo
runv curl -sSLf https://centos.org/keys/RPM-GPG-KEY-CentOS-Official -o /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Official
# Disable all repos except baseos and appstream as not all of them have support for all RHCOS/SCOS supported architectures
runv sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/cs.repo
runv sed -i '/\[baseos\]/,/^ *\[/ s/enabled=0/enabled=1/' /etc/yum.repos.d/cs.repo
runv sed -i '/\[appstream\]/,/^ *\[/ s/enabled=0/enabled=1/' /etc/yum.repos.d/cs.repo

evr=
if rpm -q centos-stream-release; then
Expand All @@ -46,10 +50,6 @@ case "${AUTOPKGTEST_REBOOT_MARK:-}" in
fi

echo "Testing overriding with CentOS Stream kernel"
# Disable all repos except baseos and appstream as not all of them have support for all RHCOS supported architectures
runv sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/cs.repo
runv sed -i '/\[baseos\]/,/^ *\[/ s/enabled=0/enabled=1/' /etc/yum.repos.d/cs.repo
runv sed -i '/\[appstream\]/,/^ *\[/ s/enabled=0/enabled=1/' /etc/yum.repos.d/cs.repo
runv rpm-ostree override replace --experimental --from repo=baseos kernel{,-core,-modules,-modules-extra,-modules-core}"${evr}"
runv /tmp/autopkgtest-reboot 1
;;
Expand Down

0 comments on commit ac1dd83

Please sign in to comment.