test_setup() {
# Create what will eventually be our root filesystem onto an overlay
- "$basedir"/dracut.sh -l --keep --tmpdir "$TESTDIR" \
+ "$DRACUT" -l --keep --tmpdir "$TESTDIR" \
-m "test-root" \
-i ./test-init.sh /sbin/init \
-i "${basedir}/modules.d/99base/dracut-lib.sh" "/lib/dracut-lib.sh" \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "test-makeroot" \
-I "mkfs.ext4" \
-i ./create-root.sh /lib/dracut/hooks/initqueue/01-create-root.sh \
rm -- "$TESTDIR"/marker.img
# make sure --omit-drivers does not filter out drivers using regexp to test for an earlier regression (assuming there is no one letter linux kernel module needed to run the test)
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-a "test watchdog" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod i6300esb ib700wdt" \
--omit-drivers 'a b c d e f g h i j k l m n o p q r s t u v w x y z' \
test_setup() {
# Create what will eventually be our root filesystem onto an overlay
- "$basedir"/dracut.sh -l --keep --tmpdir "$TESTDIR" \
+ "$DRACUT" -l --keep --tmpdir "$TESTDIR" \
-m "test-root" \
-i ./test-init.sh /sbin/init \
-i "${basedir}/modules.d/99base/dracut-lib.sh" "/lib/dracut-lib.sh" \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "test-makeroot" \
-I "mkfs.ext4" \
-i ./create-root.sh /lib/dracut/hooks/initqueue/01-create-root.sh \
# systemd-analyze.sh calls man indirectly
# make the man command succeed always
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-a "test systemd" \
-o "network kernel-network-modules" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
test_setup() {
# Create what will eventually be our root filesystem onto an overlay
- "$basedir"/dracut.sh -l --keep --tmpdir "$TESTDIR" \
+ "$DRACUT" -l --keep --tmpdir "$TESTDIR" \
-m "test-root" \
-i ./test-init.sh /sbin/init \
-i ./fstab /etc/fstab \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "test-makeroot" \
-I "mkfs.btrfs" \
-i ./create-root.sh /lib/dracut/hooks/initqueue/01-create-root.sh \
return 1
fi
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-a "test watchdog" \
-o "network kernel-network-modules" \
-d "piix ide-gd_mod ata_piix btrfs sd_mod i6300esb ib700wdt" \
shopt -q -s globstar
# Create what will eventually be our root filesystem onto an overlay
- "$basedir"/dracut.sh -l --keep --tmpdir "$TESTDIR" \
+ "$DRACUT" -l --keep --tmpdir "$TESTDIR" \
-m "test-root dbus" \
-I "ldconfig" \
-i ./test-init.sh /sbin/test-init \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "test-makeroot bash btrfs" \
-I "mkfs.btrfs" \
-i ./create-root.sh /lib/dracut/hooks/initqueue/01-create-root.sh \
[ -e /etc/machine-id ] && EXTRA_MACHINE="/etc/machine-id"
[ -e /etc/machine-info ] && EXTRA_MACHINE+=" /etc/machine-info"
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-a "test systemd i18n qemu" \
${EXTRA_MACHINE:+-I "$EXTRA_MACHINE"} \
-o "network plymouth lvm mdraid resume crypt caps dm terminfo usrmount kernel-network-modules rngd" \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "bash crypt lvm mdraid kernel-modules qemu" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
--nomdadmconf \
echo -n "test" > "$initdir"/etc/key
)
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-o "plymouth network kernel-network-modules" \
-a "debug" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "bash lvm mdraid kernel-modules qemu" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
--no-hostonly-cmdline -N \
inst_hook shutdown-emergency 000 ./hard-off.sh
inst_hook emergency 000 ./hard-off.sh
)
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-o "plymouth network kernel-network-modules" \
-a "debug" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "bash crypt lvm mdraid kernel-modules qemu" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
--no-hostonly-cmdline -N \
chmod 0600 "$initdir"/etc/key
)
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-o "plymouth network kernel-network-modules" \
-a "debug" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "bash crypt lvm mdraid kernel-modules qemu" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
--no-hostonly-cmdline -N \
echo -n test > "$initdir"/etc/key
chmod 0600 "$initdir"/etc/key
)
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-o "plymouth network kernel-network-modules" \
-a "debug" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "bash lvm mdraid dmraid kernel-modules qemu" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod dm-multipath dm-crypt dm-round-robin faulty linear multipath raid0 raid10 raid1 raid456" \
--no-hostonly-cmdline -N \
inst_hook shutdown-emergency 000 ./hard-off.sh
inst_hook emergency 000 ./hard-off.sh
)
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-o "plymouth network kernel-network-modules" \
-a "debug" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "bash btrfs rootfs-block kernel-modules qemu" \
-d "piix ide-gd_mod ata_piix btrfs sd_mod" \
--nomdadmconf \
inst_hook shutdown-emergency 000 ./hard-off.sh
inst_hook emergency 000 ./hard-off.sh
)
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-o "plymouth network kernel-network-modules" \
-a "debug" \
-d "piix ide-gd_mod ata_piix btrfs sd_mod" \
test_setup() {
# Create what will eventually be our root filesystem onto an overlay
- "$basedir"/dracut.sh -l --keep --tmpdir "$TESTDIR" \
+ "$DRACUT" -l --keep --tmpdir "$TESTDIR" \
-m "test-root" \
-i ./test-init.sh /sbin/init \
-i "${basedir}/modules.d/99base/dracut-lib.sh" "/lib/dracut-lib.sh" \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
--modules "test-makeroot" \
--install "sfdisk mkfs.ext4 mkfs.ntfs mksquashfs" \
--drivers "ntfs3" \
SUBSYSTEM=="block", ENV{ID_FS_TYPE}=="ntfs", ENV{ID_FS_TYPE}="ntfs3"
EOF
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
--modules "test dash dmsquash-live qemu" \
--omit "rngd" \
--drivers "ext4 ntfs3 sd_mod" \
--no-hostonly --no-hostonly-cmdline \
--force "$TESTDIR"/initramfs.testing "$KVERSION" || return 1
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
--modules "test dmsquash-live-autooverlay qemu" \
--omit "rngd" \
--drivers "ext4 sd_mod" \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "bash lvm mdraid kernel-modules qemu" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
--no-hostonly-cmdline -N \
inst_hook shutdown-emergency 000 ./hard-off.sh
inst_hook emergency 000 ./hard-off.sh
)
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-o "plymouth network kernel-network-modules" \
-a "debug" -I lvs \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
# shellcheck disable=SC2162
IFS=' ' read -a TEST_DRACUT_ARGS_ARRAY <<< "$TEST_DRACUT_ARGS"
- "$basedir"/dracut.sh "$@" \
+ "$DRACUT" "$@" \
--kernel-cmdline "panic=1 oops=panic softlockup_panic=1 systemd.crash_reboot selinux=0 console=ttyS0,115200n81 $DEBUGFAIL" \
"${TEST_DRACUT_ARGS_ARRAY[@]}" || return 1
}
test_setup() {
# Create what will eventually be our root filesystem
- "$basedir"/dracut.sh --local --no-hostonly --no-early-microcode --nofscks \
+ "$DRACUT" --local --no-hostonly --no-early-microcode --nofscks \
--tmpdir "$TESTDIR" --keep --modules "test-root" --include ./test-init.sh /sbin/init \
"$TESTDIR"/tmp-initramfs.root "$KVERSION" || return 1
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/server/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/server/overlay / \
-m "bash rootfs-block kernel-modules qemu" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
--nomdadmconf \
)
# Make client's dracut image
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-o "plymouth" \
-a "dmsquash-live debug watchdog ${USE_NETWORK}" \
--no-hostonly-cmdline -N \
inst_hook pre-mount 99 ./wait-if-server.sh
)
# Make server's dracut image
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "dash rootfs-block debug kernel-modules watchdog qemu network network-legacy" \
-d "af_packet piix ide-gd_mod ata_piix ext4 sd_mod e1000 i6300esb" \
--no-hostonly-cmdline -N \
test_setup() {
# Create what will eventually be the client root filesystem onto an overlay
- "$basedir"/dracut.sh -l --keep --tmpdir "$TESTDIR" \
+ "$DRACUT" -l --keep --tmpdir "$TESTDIR" \
-m "test-root" \
-i ./client-init.sh /sbin/init \
-I "ip ping grep setsid" \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "test-makeroot crypt lvm mdraid" \
-I "mkfs.ext4 setsid blockdev" \
-i ./create-client-root.sh /lib/dracut/hooks/initqueue/01-create-client-root.sh \
rm -- "$TESTDIR"/marker.img
# Create what will eventually be the server root filesystem onto an overlay
- "$basedir"/dracut.sh -l --keep --tmpdir "$TESTDIR" \
+ "$DRACUT" -l --keep --tmpdir "$TESTDIR" \
-m "test-root network network-legacy" \
-d "iscsi_tcp crc32c ipv6" \
-i ./server-init.sh /sbin/init \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "test-makeroot" \
-I "mkfs.ext4" \
-i ./create-server-root.sh /lib/dracut/hooks/initqueue/01-create-server-root.sh \
rm -- "$TESTDIR"/marker.img
# Make server's dracut image
- "$basedir"/dracut.sh -l \
+ "$DRACUT" -l \
-a "dash rootfs-block test kernel-modules network network-legacy" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod e1000 drbg" \
-i "./server.link" "/etc/systemd/network/01-server.link" \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "dash crypt lvm mdraid kernel-modules qemu" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
--no-hostonly-cmdline -N \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "dash rootfs-block kernel-modules qemu" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
--nomdadmconf \
inst_simple ./client.link /etc/systemd/network/01-client.link
)
# Make client's dracut image
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-o "plymouth dmraid nfs" \
-a "debug ${USE_NETWORK}" \
--no-hostonly-cmdline -N \
inst_hook pre-mount 99 ./wait-if-server.sh
)
# Make server's dracut image
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-a "dash rootfs-block debug kernel-modules network network-legacy" \
-d "af_packet piix ide-gd_mod ata_piix ext4 sd_mod e1000 drbg" \
--no-hostonly-cmdline -N \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "dash crypt lvm mdraid kernel-modules qemu" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
--no-hostonly-cmdline -N \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "dash rootfs-block kernel-modules qemu" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
--nomdadmconf \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "dash rootfs-block kernel-modules qemu" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
--nomdadmconf \
inst_simple ./client.link /etc/systemd/network/01-client.link
)
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-o "plymouth iscsi nfs" \
-a "debug watchdog ${USE_NETWORK}" \
--no-hostonly-cmdline -N \
inst_simple ./server.link /etc/systemd/network/01-server.link
inst_hook pre-mount 99 ./wait-if-server.sh
)
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-a "rootfs-block debug kernel-modules network network-legacy" \
-d "af_packet piix ide-gd_mod ata_piix ext4 sd_mod e1000 drbg" \
--no-hostonly-cmdline -N \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "bash rootfs-block kernel-modules qemu" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
--nomdadmconf \
inst_hook pre-pivot 85 "$basedir/modules.d/45ifcfg/write-ifcfg.sh"
)
# Make client's dracut image
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-o "ifcfg plymouth" \
-a "debug watchdog ${USE_NETWORK}" \
--no-hostonly-cmdline -N \
inst_hook pre-mount 99 ./wait-if-server.sh
)
# Make server's dracut image
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "dash rootfs-block debug kernel-modules watchdog qemu network network-legacy" \
-d "af_packet piix ide-gd_mod ata_piix ext4 sd_mod nfsv2 nfsv3 nfsv4 nfs_acl nfs_layout_nfsv41_files nfsd e1000 i6300esb ib700wdt" \
--no-hostonly-cmdline -N \
# create an initramfs that will create the target root filesystem.
# We do it this way so that we do not risk trashing the host mdraid
# devices, volume groups, encrypted partitions, etc.
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
-m "bash rootfs-block kernel-modules qemu" \
-d "piix ide-gd_mod ata_piix ext4 sd_mod" \
--nomdadmconf \
inst_simple ./client.link /etc/systemd/network/01-client.link
)
# Make client's dracut image
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
--no-early-microcode \
-o "plymouth" \
-a "debug ${USE_NETWORK}" \
inst_hook pre-mount 99 ./wait-if-server.sh
)
# Make server's dracut image
- "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
+ "$DRACUT" -l -i "$TESTDIR"/overlay / \
--no-early-microcode \
-m "rootfs-block debug kernel-modules watchdog qemu network network-legacy" \
-d "ipvlan macvlan af_packet piix ide-gd_mod ata_piix ext4 sd_mod nfsv2 nfsv3 nfsv4 nfs_acl nfs_layout_nfsv41_files nfsd virtio-net i6300esb ib700wdt" \
sleep 20
EOF
- "$basedir"/dracut.sh -l --drivers "" \
+ "$DRACUT" -l --drivers "" \
"${dracut_cpio_params[@]}" \
--modules "bash base" \
--include "$tdir/init.sh" /lib/dracut/hooks/emergency/00-init.sh \
if [[ -z $basedir ]]; then basedir="$(realpath ../..)"; fi
+DRACUT=${DRACUT-${basedir}/dracut.sh}
+
test_dracut() {
TEST_DRACUT_ARGS+=" --local --no-hostonly --no-early-microcode --add test --kver $KVERSION"
# shellcheck disable=SC2162
IFS=' ' read -a TEST_DRACUT_ARGS_ARRAY <<< "$TEST_DRACUT_ARGS"
- "$basedir"/dracut.sh "$@" \
+ "$DRACUT" "$@" \
--kernel-cmdline "panic=1 oops=panic softlockup_panic=1 systemd.crash_reboot selinux=0 console=ttyS0,115200n81 $DEBUGFAIL" \
"${TEST_DRACUT_ARGS_ARRAY[@]}" || return 1
}