mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
add mdadm test
This commit is contained in:
parent
212b62d08a
commit
746e7dca95
2 changed files with 12 additions and 0 deletions
|
@ -105,6 +105,17 @@ for i in bcachefs btrfs ext4 swap vfat xfs; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
_result filesytems-error.log
|
_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"
|
_run_test "Wi-Fi iwctl"
|
||||||
archboot-hwsim.sh test &>"${_NO_LOG}"
|
archboot-hwsim.sh test &>"${_NO_LOG}"
|
||||||
iwctl station wlan1 scan
|
iwctl station wlan1 scan
|
||||||
|
|
|
@ -274,6 +274,7 @@ _clean_disk() {
|
||||||
wipefs -a -f "${1}" &>"${_NO_LOG}"
|
wipefs -a -f "${1}" &>"${_NO_LOG}"
|
||||||
# really clear everything MBR/GPT at the beginning of the device!
|
# really clear everything MBR/GPT at the beginning of the device!
|
||||||
dd if=/dev/zero of="${1}" bs=1M count=10 &>"${_NO_LOG}"
|
dd if=/dev/zero of="${1}" bs=1M count=10 &>"${_NO_LOG}"
|
||||||
|
sync
|
||||||
}
|
}
|
||||||
|
|
||||||
# Disable swap and all mounted partitions for the destination system. Unmount
|
# Disable swap and all mounted partitions for the destination system. Unmount
|
||||||
|
|
Loading…
Reference in a new issue