From 8f0c07d79c66445829de58bb0fe0a1e0077d96f9 Mon Sep 17 00:00:00 2001 From: Johan Gunnarsson Date: Sun, 23 Jul 2023 21:20:29 +0200 Subject: [PATCH] test: Add sleep after losetup --- test/qemu.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/qemu.sh b/test/qemu.sh index 4f851dd..a6b13d0 100755 --- a/test/qemu.sh +++ b/test/qemu.sh @@ -23,6 +23,7 @@ zcat "${BOOT}" "${DEBIAN}" > image.bin # Check integrity LOOP1=$(losetup -f -P --show image.bin) && { trap 'losetup -d "${LOOP1}"' ERR + sleep 1 fsck.vfat -p -f "${LOOP1}p1" fsck.ext4 -p -f "${LOOP1}p2" trap '-' ERR @@ -38,6 +39,7 @@ parted -s -a opt image.bin "resizepart 2 100%" # Check integrity again LOOP2=$(losetup -f -P --show image.bin) && { trap 'losetup -d "${LOOP2}"' ERR + sleep 1 fsck.vfat -p -f "${LOOP2}p1" fsck.ext4 -p -f "${LOOP2}p2" resize2fs "${LOOP2}p2"