]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: workaround centos failures for a green CI
authorJo Zzsi <jozzsicsataban@gmail.com>
Thu, 7 Nov 2024 20:49:39 +0000 (15:49 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Thu, 7 Nov 2024 20:58:22 +0000 (15:58 -0500)
test/container/Dockerfile-fedora

index 8e7a02e1a9fd4300e007e726c348497104f6e56c..247f7979aeb9d311cfdcad89021037052c367f58 100644 (file)
@@ -86,3 +86,10 @@ 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 \
+; fi