d1a34d
From d19ca83f909ed695f199aa688406f62e3eecadcd Mon Sep 17 00:00:00 2001
d1a34d
From: Frantisek Sumsal <frantisek@sumsal.cz>
d1a34d
Date: Tue, 9 Nov 2021 16:01:51 +0100
d1a34d
Subject: [PATCH] ci: bump C8 jobs to C9S
d1a34d
d1a34d
rhel-only
d1a34d
---
d1a34d
 .github/workflows/container.yml                             |  2 +-
d1a34d
 .github/workflows/integration.yml                           |  4 ++--
d1a34d
 ...ockerfile-CentOS-8-Stream => Dockerfile-CentOS-9-Stream} | 13 ++-----------
d1a34d
 3 files changed, 5 insertions(+), 14 deletions(-)
d1a34d
d1a34d
diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml
d1a34d
index a8b3f9b8..adcec4f6 100644
d1a34d
--- a/.github/workflows/container.yml
d1a34d
+++ b/.github/workflows/container.yml
d1a34d
@@ -33,7 +33,7 @@ jobs:
d1a34d
                     - { dockerfile: 'Dockerfile-Fedora-rawhide',    tag: 'fedora:rawhide' }
d1a34d
                     - { dockerfile: 'Dockerfile-OpenSuse-latest',   tag: 'opensuse:latest' }
d1a34d
                     - { dockerfile: 'Dockerfile-Arch',              tag: 'arch:latest' }
d1a34d
-                    - { dockerfile: 'Dockerfile-CentOS-8-Stream',   tag: 'centos:stream8' }
d1a34d
+                    - { dockerfile: 'Dockerfile-CentOS-9-Stream',   tag: 'centos:stream9' }
d1a34d
         steps:
d1a34d
             -   name: Check out the repo
d1a34d
                 uses: actions/checkout@v2
d1a34d
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
d1a34d
index 9ea718f1..990dd079 100644
d1a34d
--- a/.github/workflows/integration.yml
d1a34d
+++ b/.github/workflows/integration.yml
d1a34d
@@ -79,7 +79,7 @@ jobs:
d1a34d
 
d1a34d
             -   name: "${{ matrix.container }} TEST-${{ matrix.test }}"
d1a34d
                 run: ./tools/test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }}
d1a34d
-    centos-8-stream:
d1a34d
+    centos-9-stream:
d1a34d
         runs-on: ubuntu-latest
d1a34d
         timeout-minutes: 45
d1a34d
         concurrency:
d1a34d
@@ -88,7 +88,7 @@ jobs:
d1a34d
         strategy:
d1a34d
             matrix:
d1a34d
                 container: [
d1a34d
-                        "centos:stream8",
d1a34d
+                        "centos:stream9",
d1a34d
                 ]
d1a34d
                 # Disabled tests (due to dropped packages in RHEL/CentOS):
d1a34d
                 # 03, 04, 15: requires btrfs
d1a34d
diff --git a/test/container/Dockerfile-CentOS-8-Stream b/test/container/Dockerfile-CentOS-9-Stream
d1a34d
similarity index 65%
d1a34d
rename from test/container/Dockerfile-CentOS-8-Stream
d1a34d
rename to test/container/Dockerfile-CentOS-9-Stream
d1a34d
index b14cc64a..da94f134 100644
d1a34d
--- a/test/container/Dockerfile-CentOS-8-Stream
d1a34d
+++ b/test/container/Dockerfile-CentOS-9-Stream
d1a34d
@@ -1,4 +1,4 @@
d1a34d
-FROM quay.io/centos/centos:stream8
d1a34d
+FROM quay.io/centos/centos:stream9
d1a34d
 
d1a34d
 MAINTAINER https://github.com/dracutdevs/dracut
d1a34d
 
d1a34d
@@ -7,17 +7,8 @@ LABEL RUN="docker run -it --name NAME --privileged --ipc=host --net=host --pid=h
d1a34d
 
d1a34d
 RUN echo 'export DRACUT_NO_XATTR=1 KVERSION=$(cd /lib/modules; ls -1 | tail -1)' > /etc/profile.d/dracut-test.sh
d1a34d
 
d1a34d
-# FIXME: the mirrors were desynchronized at the time of writing, leading to several
d1a34d
-#        conflicts when installing dependencies below
d1a34d
-RUN sed -i -e 's/^mirrorlist=/#mirrorlist=/g' -e 's/^#baseurl=/baseurl=/g' /etc/yum.repos.d/*.repo
d1a34d
-
d1a34d
 # Install needed packages for the dracut CI container
d1a34d
 RUN dnf -y install epel-release && \
d1a34d
-    `# FIXME: this is required to work around a bug in e2fsprogs, remove when CentOS 8.5 is out` && \
d1a34d
-    dnf -y install dnf-plugins-core && \
d1a34d
-    dnf -y copr enable mrc0mmand/systemd-centos-ci-centos8 && \
d1a34d
-    dnf -y install e2fsprogs && \
d1a34d
-    `# End of FIXME` && \
d1a34d
     dnf -y install --enablerepo powertools --enablerepo epel --setopt=install_weak_deps=False \
d1a34d
     qemu-kvm \
d1a34d
     NetworkManager \
d1a34d
@@ -54,7 +45,7 @@ RUN dnf -y install epel-release && \
d1a34d
     xz \
d1a34d
     && dnf -y update && dnf clean all
d1a34d
 
d1a34d
-# CentOS 8 ships only qemu-kvm, but it disables the KVM accel when it's not
d1a34d
+# C9S ships only qemu-kvm, but it disables the KVM accel when it's not
d1a34d
 # available
d1a34d
 RUN ln -sv /usr/libexec/qemu-kvm /usr/bin/qemu-kvm && \
d1a34d
     ln -sv /usr/libexec/qemu-kvm /usr/bin/qemu-system-$(uname -m)
d1a34d