]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci(opensuse): enable strict hostonly
authorJo Zzsi <jozzsicsataban@gmail.com>
Wed, 23 Apr 2025 15:57:49 +0000 (11:57 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Thu, 24 Apr 2025 19:53:42 +0000 (15:53 -0400)
As the the strict and non-strict (a.k.a. sloppy) hostonly
configurations are significantly different, the CI should
have test covergae for both.

Enable strict hostonly for the openSUSE container.

test/container/Dockerfile-opensuse

index 11ba6757f070a08aba203edd86ef30ff890c0186..2eb04591cfe1ec1ffaa4e827b9ea0a06ba16edae 100644 (file)
@@ -1,6 +1,6 @@
 # Test coverage provided by this container:
 # - arm64
-# - default hostonly
+# - strict hostonly
 # - network-legacy
 # - mkosi-initrd
 # - hmaccalc (fido)
@@ -58,6 +58,8 @@ RUN zypper --non-interactive install --no-recommends \
     && zypper --non-interactive dist-upgrade --no-recommends
 
 # workaround for openSUSE on arm64
+# force strict hostonly mode to increase test coverage
 RUN \
+    echo 'hostonly_mode="strict"' > /usr/lib/dracut/dracut.conf.d/02-dist.conf \
     KVERSION="$(cd /lib/modules && ls -1 | tail -1)" \
     && if [ "$(arch)"="aarch64" ] && [ -e /usr/lib/modules/"$KVERSION"/Image ]; then ln -sf /usr/lib/modules/"$KVERSION"/Image /usr/lib/modules/"$KVERSION"/vmlinuz; fi