test module can be simplified down to just a configuration file instead
as it no longer has its own additional scripts files that would
require a module.
This commit is an additional step to reinforce testing in a similar configuration
as actual end-user configuration.
-add_dracutmodules+=" test "
+add_dracutmodules+=" base debug qemu watchdog kernel-modules "
# do not strip
do_strip="no"
do_hardlink="no"
# test the dlopen dependencies support
add_dlopen_features+=" libsystemd-shared-*.so:fido2 "
+
+# testsuite assumes ext4 for convenience
+add_drivers+=" ext4 "
+++ /dev/null
-../test/modules.d/70test
\ No newline at end of file
# Make server's dracut image
"$DRACUT" \
- -a "test network-legacy" \
+ -a "network-legacy" \
+ --add-confdir test \
-d "piix ide-gd_mod ata_piix ext4 sd_mod drbg virtio_net virtio_pci virtio_scsi" \
-i "./server.link" "/etc/systemd/network/01-server.link" \
-i ./wait-if-server.sh /lib/dracut/hooks/pre-mount/99-wait-if-server.sh \
test_dracut \
--no-kernel --drivers "" \
- --modules "test" \
+ --add-confdir "test" \
"${dracut_cpio_params[@]}" \
--include "$tdir/init.sh" /lib/dracut/hooks/emergency/00-init.sh \
--install "poweroff" \
+++ /dev/null
-#!/bin/bash
-
-check() {
- # Only include the module if another module requires it
- return 255
-}
-
-depends() {
- echo "base debug qemu watchdog kernel-modules"
-}
-
-# testsuite assumes ext4 for convenience
-installkernel() {
- hostonly='' instmods \
- ext4
-}