]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test(TEST-40-NBD): tests should avoid managing kernel modules manually
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Sat, 6 Jul 2024 13:17:09 +0000 (09:17 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sun, 7 Jul 2024 13:56:52 +0000 (09:56 -0400)
Remove NFS related kernel modules from the NBD test.
Remove networking modules that are installed by kernel-network-modules.

Increase server disk space as now more kernel modules gets installed.

test/TEST-40-NBD/test.sh

index 05daa05eacd187f3fe28820349aa0c4848428dd0..a8efabee5c8abc684071dbf20b664f03ec53bda6 100755 (executable)
@@ -279,7 +279,6 @@ EOF
 
     "$DRACUT" -l --keep --tmpdir "$TESTDIR" \
         -a "test-root ${USE_NETWORK}" \
-        -d "nfsd sunrpc ipv6 lockd af_packet 8021q ipvlan macvlan" \
         -I "ip grep sleep nbd-server chmod modprobe vi pidof" \
         -i "${basedir}/modules.d/99base/dracut-lib.sh" "/lib/dracut-lib.sh" \
         -i "${basedir}/modules.d/99base/dracut-dev-lib.sh" "/lib/dracut-dev-lib.sh" \
@@ -307,7 +306,7 @@ EOF
     declare -a disk_args=()
     declare -i disk_index=0
     qemu_add_drive disk_index disk_args "$TESTDIR"/marker.img marker 1
-    qemu_add_drive disk_index disk_args "$TESTDIR"/server.img root 240
+    qemu_add_drive disk_index disk_args "$TESTDIR"/server.img root 480
 
     # Invoke KVM and/or QEMU to actually create the target filesystem.
     "$testdir"/run-qemu \