From 35a18f13f9b27ac5d6b940e409e7505f447c4302 Mon Sep 17 00:00:00 2001 From: leeboby Date: Wed, 24 Apr 2024 20:32:32 +0800 Subject: [PATCH] fix: increase the default free space --- scripts/make_image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/make_image.sh b/scripts/make_image.sh index d5d785e..1784bd3 100755 --- a/scripts/make_image.sh +++ b/scripts/make_image.sh @@ -14,7 +14,7 @@ function make_image() OFFSET=800 EXTRA_ROOTFS_MIB_SIZE=50 imagesize=$(($rootfs_size + $OFFSET + $EXTRA_ROOTFS_MIB_SIZE)) # MiB - sdsize=$(bc -l <<< "scale=0; ((($imagesize * 1.1) / 1 + 0) / 4 + 1) * 4") + sdsize=$(bc -l <<< "scale=0; ((($imagesize * 1.35) / 1 + 0) / 4 + 1) * 4") display_alert "Creating blank image for rootfs" "$sdsize MiB" "info" dd if=/dev/zero bs=1M status=none count=$sdsize | pv -p -b -r -s $(($sdsize * 1024 * 1024)) -N "[ .... ] dd" | dd status=none of=${ROOTFS}.raw -- Gitee