]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test(SYSTEMD-INITRD): demonstrate boot without initqueue
authorJo Zzsi <jozzsicsataban@gmail.com>
Mon, 19 May 2025 10:08:48 +0000 (06:08 -0400)
committerLaszlo <laszlo.gombos@gmail.com>
Tue, 20 May 2025 19:41:05 +0000 (15:41 -0400)
After this change initqueue dracut module is no longer used
in the initramfs for this test.

initqueue was added as a dependency of the watchdog module,
which was added as a dependency of the test dracut module.

test/TEST-42-SYSTEMD-INITRD/test.sh

index 34ddcbd6145eaa451c65fb2350b0ac4f11775411..a028c374ebbfce814c2956c2e58c2e68ebc17963 100755 (executable)
@@ -72,18 +72,20 @@ test_setup() {
     test_marker_check dracut-root-block-created
     rm -- "$TESTDIR"/marker.img
 
-    # initrd for test infra and required kernel modules
+    # initrd for required kernel modules
     # Improve boot time by generating two initrds. Do not re-compress kernel modules
-    test_dracut \
+    "$DRACUT" \
         --no-compress \
-        -m "kernel-modules" \
-        "$TESTDIR"/initramfs-test
+        --kernel-only \
+        -m "kernel-modules qemu" \
+        -d "ext4" \
+        -f "$TESTDIR"/initramfs-test "$KVERSION"
 
     # vanilla kernel-independent systemd-based minimal initrd without dracut specific customizations
     # since dracut-systemd is not included in the generated initrd, only systemd options are supported during boot
     test_dracut --no-kernel \
         --omit "test systemd-sysctl systemd-modules-load" \
-        -m "systemd-initrd" \
+        -m "systemd-initrd base" \
         "$TESTDIR"/initramfs-systemd-initrd
 
     # verify that dracut systemd services are not included