From 0893f1209b3f502599922360a680ca776739cb29 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 13 May 2024 16:26:42 +0100 Subject: [PATCH] build-debian: work-around for git CI on COW files systems. --- scripts/build-debian | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build-debian b/scripts/build-debian index 43fc91c..1e91641 100755 --- a/scripts/build-debian +++ b/scripts/build-debian @@ -197,7 +197,8 @@ mv debian/tmp/versions.csv versions.csv # >>> ((3800000000 - 32 * 1024 * 1024) // (1024 * 1024)) * (1024 * 1024) # 3765436416 rm -f ext4.img -fallocate -l 3765436416 ext4.img +# fallocate fails on COW filesystems. Use a simple, zero time alternative. +fallocate -l 3765436416 ext4.img || dd if=/dev/zero of=ext4.img bs=1 count=0 seek=3765436416 mkfs.ext4 -d debian ext4.img pigz ext4.img