From: Benjamin Drung Date: Fri, 6 Feb 2026 22:57:41 +0000 (+0100) Subject: test: stop mdadm after creating client rootfs X-Git-Tag: 110~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=832a20f617063a30743aefce6cc1ccb6be854954;p=thirdparty%2Fdracut-ng.git test: stop mdadm after creating client rootfs To be on the safe side, stop mdadm after creating client rootfs in the iSCSI tests 70 and 71 (similar to `create-root.sh` in test 26). --- diff --git a/test/TEST-70-ISCSI/create-client-root.sh b/test/TEST-70-ISCSI/create-client-root.sh index 93a4b6d1c..9cf1ee19a 100755 --- a/test/TEST-70-ISCSI/create-client-root.sh +++ b/test/TEST-70-ISCSI/create-client-root.sh @@ -14,6 +14,8 @@ mount -t ext4 /dev/dracut/root /sysroot cp -a -t /sysroot /source/* umount /sysroot lvm lvchange -a n /dev/dracut/root +mdadm -W /dev/md0 || : +mdadm --stop /dev/md0 echo "dracut-root-block-created" | dd oflag=direct of=/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_marker status=none sync /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_marker poweroff -f diff --git a/test/TEST-71-ISCSI-MULTI/create-client-root.sh b/test/TEST-71-ISCSI-MULTI/create-client-root.sh index 93a4b6d1c..9cf1ee19a 100755 --- a/test/TEST-71-ISCSI-MULTI/create-client-root.sh +++ b/test/TEST-71-ISCSI-MULTI/create-client-root.sh @@ -14,6 +14,8 @@ mount -t ext4 /dev/dracut/root /sysroot cp -a -t /sysroot /source/* umount /sysroot lvm lvchange -a n /dev/dracut/root +mdadm -W /dev/md0 || : +mdadm --stop /dev/md0 echo "dracut-root-block-created" | dd oflag=direct of=/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_marker status=none sync /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_marker poweroff -f