add mdadm test

This commit is contained in:
Tobias Powalowski 2024-07-11 21:41:35 +02:00
parent 212b62d08a
commit 746e7dca95
2 changed files with 12 additions and 0 deletions

View file

@ -105,6 +105,17 @@ for i in bcachefs btrfs ext4 swap vfat xfs; do
fi
done
_result filesytems-error.log
_run_test "blockdevices"
dd if=/dev/zero of=/test.img bs=1M count=1000 &>"${_NO_LOG}"
sync
losetup --show -f /test.img
mdadm --create /dev/md0 --run --level=0 --raid-devices=1 /dev/loop0 &>"${_NO_LOG}" || echo "mdadm creation error." >> blockdevices-error.log
wipefs -a -f /dev/md0 &>"${_NO_LOG}"
mdadm --manage --stop /dev/md0 &>"${_NO_LOG}" || echo "mdadm stop error." >> blockdevices-error.log
wipefs -a -f /dev/loop0 &>"${_NO_LOG}"
dd if=/dev/zero of=/test.img bs=1M count=10 &>"${_NO_LOG}"
sync
_result blockdevices-error.log
_run_test "Wi-Fi iwctl"
archboot-hwsim.sh test &>"${_NO_LOG}"
iwctl station wlan1 scan

View file

@ -274,6 +274,7 @@ _clean_disk() {
wipefs -a -f "${1}" &>"${_NO_LOG}"
# really clear everything MBR/GPT at the beginning of the device!
dd if=/dev/zero of="${1}" bs=1M count=10 &>"${_NO_LOG}"
sync
}
# Disable swap and all mounted partitions for the destination system. Unmount