]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: no need to explicitly add qemu-net anymore
authorJo Zzsi <jozzsicsataban@gmail.com>
Thu, 5 Feb 2026 14:35:31 +0000 (09:35 -0500)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Fri, 6 Feb 2026 14:26:35 +0000 (09:26 -0500)
Commit 94b21ab enables dracut to automatically detect
when qemu-net is required.

Ensure this condition is covered by CI by removing qemu-net
from the dracut module lists.

test/TEST-30-DMSQUASH/test.sh
test/TEST-60-NFS/test.sh
test/TEST-70-ISCSI/test.sh
test/TEST-71-ISCSI-MULTI/test.sh
test/TEST-72-NBD/test.sh

index 38090a595e24c880ed2e48032b28248ece1f1553..97ead4470e96d49ef805681aa2161ae0d52b65d0 100755 (executable)
@@ -134,7 +134,7 @@ EOF
         mkfs.ext4 -q -L dracut_iso -d "$TESTDIR"/iso/ "$TESTDIR"/root_iso.img
     fi
 
-    local dracut_modules="dmsquash-live-autooverlay convertfs pollcdrom kernel-modules kernel-modules-extra qemu qemu-net"
+    local dracut_modules="dmsquash-live-autooverlay convertfs pollcdrom kernel-modules kernel-modules-extra qemu"
 
     if type -p ntfs-3g &> /dev/null; then
         dracut_modules="$dracut_modules dmsquash-live-ntfs"
index ec1f00d3a10afb1764041295b3363303e31deeef..55f3013719eff2389731038b4088b6bacf748277 100755 (executable)
@@ -260,11 +260,11 @@ test_setup() {
     test_dracut \
         --no-hostonly \
         --include ./client.link /etc/systemd/network/01-client.link \
-        -a "watchdog dmsquash-live qemu-net ${USE_NETWORK}"
+        -a "watchdog dmsquash-live ${USE_NETWORK}"
 
     # Make server's dracut image
     call_dracut \
-        -a "bash qemu-net $USE_NETWORK ${SERVER_DEBUG:+debug}" \
+        -a "bash $USE_NETWORK ${SERVER_DEBUG:+debug}" \
         --include ./server.link /etc/systemd/network/01-server.link \
         --include ./wait-if-server.sh /usr/lib/dracut/hooks/pre-mount/99-wait-if-server.sh \
         -N \
index 43cb16e1e7cb76289b7c0bf253a68932d903d391..b960be3679cf7c3b3b813a457926ca1964b99852 100755 (executable)
@@ -174,7 +174,7 @@ test_setup() {
 
     # Make server's dracut image
     call_dracut \
-        -a "qemu-net $USE_NETWORK" \
+        -a "$USE_NETWORK" \
         --add-confdir test \
         -i "./server.link" "/etc/systemd/network/01-server.link" \
         -i ./wait-if-server.sh /usr/lib/dracut/hooks/pre-mount/99-wait-if-server.sh \
@@ -184,7 +184,7 @@ test_setup() {
     # Make client's dracut image
     test_dracut \
         --no-hostonly \
-        --add "watchdog qemu-net $USE_NETWORK" \
+        --add "watchdog $USE_NETWORK" \
         --include "./client-persistent-lan0.link" "/etc/systemd/network/01-persistent-lan0.link" \
         --include "./client-persistent-lan1.link" "/etc/systemd/network/01-persistent-lan1.link" \
         --kernel-cmdline "rw rd.auto"
index e04b3a557d6f74840b6aff2e03fdfdc35a470b67..a83fdad79a2017668e7b92991ac91504c62b6012 100755 (executable)
@@ -186,14 +186,14 @@ test_setup() {
     # Make client's dracut image
     test_dracut \
         --no-hostonly \
-        --add "watchdog qemu-net $USE_NETWORK" \
+        --add "watchdog $USE_NETWORK" \
         -i ./client-persistent-lan0.link /etc/systemd/network/01-persistent-lan0.link \
         -i ./client-persistent-lan1.link /etc/systemd/network/01-persistent-lan1.link
 
     # Make server's dracut image
     call_dracut \
         --add-confdir test \
-        -a "qemu-net $USE_NETWORK ${SERVER_DEBUG:+debug}" \
+        -a "$USE_NETWORK ${SERVER_DEBUG:+debug}" \
         -i "./server.link" "/etc/systemd/network/01-server.link" \
         -i "./wait-if-server.sh" "/usr/lib/dracut/hooks/pre-mount/99-wait-if-server.sh" \
         -N \
index d1ddff395bcd6dbb3ecbe19d0132537c995cbb52..41806c27211b4b51a98a9a17868ce4eaf138c144 100755 (executable)
@@ -263,14 +263,14 @@ test_setup() {
 
     test_dracut \
         --no-hostonly \
-        -a "watchdog qemu-net ${USE_NETWORK}" \
+        -a "watchdog ${USE_NETWORK}" \
         -i "./client.link" "/etc/systemd/network/01-client.link" \
         -i "/tmp/crypttab" "/etc/crypttab" \
         -i "/tmp/key" "/etc/key"
 
     call_dracut -N \
         --add-confdir test \
-        -a "qemu-net $USE_NETWORK ${SERVER_DEBUG:+debug}" \
+        -a "$USE_NETWORK ${SERVER_DEBUG:+debug}" \
         -i "./server.link" "/etc/systemd/network/01-server.link" \
         -i "./wait-if-server.sh" "/usr/lib/dracut/hooks/pre-mount/99-wait-if-server.sh" \
         -f "$TESTDIR"/initramfs.server