]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test(NETWORK): remove the hostonly_mode=sloppy workaround
authorJo Zzsi <jozzsicsataban@gmail.com>
Tue, 12 Aug 2025 02:47:52 +0000 (22:47 -0400)
committerBenjamin Drung <bdrung@ubuntu.com>
Fri, 15 Aug 2025 12:36:54 +0000 (14:36 +0200)
The test now passes regardless of the value of hostonly_mode.

test/TEST-50-NETWORK/test.sh

index 14d6b3fc181e08eb47d2492d2ad6901fcd80651e..7f0e1f928f9bc964c9ca9b80cb8a2fd9da1e9b24 100755 (executable)
@@ -35,8 +35,7 @@ test_setup() {
     dd if=/dev/zero of="$TESTDIR"/root.img bs=200MiB count=1 status=none && sync "$TESTDIR"/root.img
     mkfs.ext4 -q -L dracut -d "$TESTDIR"/dracut.*/initramfs/ "$TESTDIR"/root.img && sync "$TESTDIR"/root.img
 
-    # TODO: remove the requirement for hostonly-mode=sloppy
-    test_dracut --hostonly-mode=sloppy --add "$USE_NETWORK"
+    test_dracut --add-drivers "virtio_net" --add "$USE_NETWORK"
 }
 
 # shellcheck disable=SC1090