diff --git a/usr/bin/archboot-testsuite.sh b/usr/bin/archboot-testsuite.sh index 62fe02ea5..f53378093 100755 --- a/usr/bin/archboot-testsuite.sh +++ b/usr/bin/archboot-testsuite.sh @@ -93,18 +93,16 @@ _result license-error.txt _run_test "filesystems" for i in bcachefs btrfs ext4 swap vfat xfs; do dd if=/dev/zero of=/test.img bs=1M count=1000 &>"${_NO_LOG}" - sync if [[ "${i}" == "swap" ]]; then mkswap /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >> filesystems-error.log - sync else mkfs.${i} /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >> filesystems-error.log 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 fi done -_result filesytems-error.log +_result filesystems-error.log _run_test "blockdevices" dd if=/dev/zero of=/test.img bs=1M count=1000 &>"${_NO_LOG}" sync diff --git a/usr/lib/archboot/installer/blockdevices.sh b/usr/lib/archboot/installer/blockdevices.sh index c217f93ec..a48215134 100644 --- a/usr/lib/archboot/installer/blockdevices.sh +++ b/usr/lib/archboot/installer/blockdevices.sh @@ -274,7 +274,6 @@ _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