]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
test: stop mdadm after creating client rootfs
authorBenjamin Drung <benjamin.drung@canonical.com>
Fri, 6 Feb 2026 22:57:41 +0000 (23:57 +0100)
committerLaszlo <1522773+LaszloGombos@users.noreply.github.com>
Fri, 6 Feb 2026 23:21:30 +0000 (18:21 -0500)
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).

test/TEST-70-ISCSI/create-client-root.sh
test/TEST-71-ISCSI-MULTI/create-client-root.sh

index 93a4b6d1c4216614318e511a8562beac2953bc9c..9cf1ee19aa8a7dd15e73e84482a07a21813899ca 100755 (executable)
@@ -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
index 93a4b6d1c4216614318e511a8562beac2953bc9c..9cf1ee19aa8a7dd15e73e84482a07a21813899ca 100755 (executable)
@@ -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