mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add mdadm test
This commit is contained in:
parent
04803faf53
commit
f7443b1257
2 changed files with 2 additions and 5 deletions
|
@ -93,18 +93,16 @@ _result license-error.txt
|
||||||
_run_test "filesystems"
|
_run_test "filesystems"
|
||||||
for i in bcachefs btrfs ext4 swap vfat xfs; do
|
for i in bcachefs btrfs ext4 swap vfat xfs; do
|
||||||
dd if=/dev/zero of=/test.img bs=1M count=1000 &>"${_NO_LOG}"
|
dd if=/dev/zero of=/test.img bs=1M count=1000 &>"${_NO_LOG}"
|
||||||
sync
|
|
||||||
if [[ "${i}" == "swap" ]]; then
|
if [[ "${i}" == "swap" ]]; then
|
||||||
mkswap /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >> filesystems-error.log
|
mkswap /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >> filesystems-error.log
|
||||||
sync
|
|
||||||
else
|
else
|
||||||
mkfs.${i} /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >> filesystems-error.log
|
mkfs.${i} /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >> filesystems-error.log
|
||||||
sync
|
sync
|
||||||
mount -o loop -t "${i}" /test.img /mnt &>"${_NO_LOG}" || echo "Mount error: ${i}" >> filesystems-error.log
|
mount -o loop /test.img /mnt &>"${_NO_LOG}" || echo "Mount error: ${i}" >> filesystems-error.log
|
||||||
umount /mnt || echo "Unmount error: ${i}" >> filesystems-error.log
|
umount /mnt || echo "Unmount error: ${i}" >> filesystems-error.log
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
_result filesytems-error.log
|
_result filesystems-error.log
|
||||||
_run_test "blockdevices"
|
_run_test "blockdevices"
|
||||||
dd if=/dev/zero of=/test.img bs=1M count=1000 &>"${_NO_LOG}"
|
dd if=/dev/zero of=/test.img bs=1M count=1000 &>"${_NO_LOG}"
|
||||||
sync
|
sync
|
||||||
|
|
|
@ -274,7 +274,6 @@ _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