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