]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci(fedora): remove nss-softokn workaround and install kdump-utils
authorJo Zzsi <jozzsicsataban@gmail.com>
Thu, 7 Nov 2024 22:53:30 +0000 (17:53 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Thu, 7 Nov 2024 23:09:47 +0000 (18:09 -0500)
This setup is closer what users actually use and will allow to
test more dracut modules.

test/container/Dockerfile-fedora

index 247f7979aeb9d311cfdcad89021037052c367f58..d9c7d502abd628d025fe226648feaac681d7c7b9 100644 (file)
@@ -9,7 +9,7 @@
 # - openssh (ssh-client)
 # - rsyslog (syslog)
 # - libkcapi-hmaccalc (fido)
-# - nss-softokn out of tree dracut module
+# - nss-softokn, kdumpbase out of tree dracut modules
 
 ARG DISTRIBUTION=fedora
 ARG REGISTRY=registry.fedoraproject.org
@@ -54,6 +54,7 @@ RUN dnf -y install --setopt=install_weak_deps=False \
     iscsi-initiator-utils \
     jq \
     kbd \
+    kdump-utils \
     kernel \
     kmod-devel \
     libkcapi-hmaccalc \
@@ -80,16 +81,12 @@ RUN dnf -y install --setopt=install_weak_deps=False \
     tpm2-tools \
     && dnf -y update && dnf clean all
 
-# discard configurations that enforce an out-of-tree dracut module breaking CI
 # CentOS Stream ships only qemu-kvm, but it disables the KVM accel when it's not available
-RUN \
-    rm -rf /usr/lib/dracut/dracut.conf.d/50-nss-softokn.conf && \
-    [[ -e /usr/bin/qemu-kvm ]] || ln -sf /usr/libexec/qemu-kvm /usr/bin/qemu-kvm && \
-    [[ -e /usr/bin/qemu-system-$(uname -m) ]] || ln -sv /usr/libexec/qemu-kvm /usr/bin/qemu-system-$(uname -m)
-
 # force non-hostonly mode, but keep all the other config
 # this workaround is needed to pass crypt tests with rd.auto
 RUN \
 if [[ "${DISTRIBUTION}" =~ "centos:" ]]; then \
-  echo 'hostonly="no"' > /usr/lib/dracut/dracut.conf.d/02-dist.conf \
+    [[ -e /usr/bin/qemu-kvm ]] || ln -sf /usr/libexec/qemu-kvm /usr/bin/qemu-kvm ;\
+    [[ -e /usr/bin/qemu-system-$(uname -m) ]] || ln -sv /usr/libexec/qemu-kvm /usr/bin/qemu-system-$(uname -m) ;\
+    echo 'hostonly="no"' > /usr/lib/dracut/dracut.conf.d/02-dist.conf \
 ; fi