From cd9bece1fd519c3514ac265998108b7490fe90ef Mon Sep 17 00:00:00 2001 From: david Date: Mon, 13 May 2024 19:00:36 +0100 Subject: [PATCH] qemu.sh: fallocate work-around for git CI on COW files systems. --- test/qemu.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/qemu.sh b/test/qemu.sh index a6b13d0..19a6696 100755 --- a/test/qemu.sh +++ b/test/qemu.sh @@ -31,7 +31,8 @@ LOOP1=$(losetup -f -P --show image.bin) && { } # Assume 8GB virtual disk -fallocate -l 8GB image.bin +# fallocate fails on some (git CI) COW filesystems, so have a coreutils alternative. +fallocate -l 8GB image.bin || truncate --size 8GB image.bin # Extend second partition parted -s -a opt image.bin "resizepart 2 100%"