From d8228e94a7b82ed0c5bb4dcc41a6de8c33a4689b Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 9 Feb 2020 23:44:01 +0500 Subject: [PATCH] Extend partitions to reserve some free space This reverts commit 73261d6ef5afaf893001f2063cb18749f8024a09. --- mkimg.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkimg.sh b/mkimg.sh index 81dc8a6..92b53ce 100644 --- a/mkimg.sh +++ b/mkimg.sh @@ -27,8 +27,9 @@ TOTAL_SIZE=$(du --apparent-size -s "$ROOTFS_DIR" --block-size=1 | cut -f 1) ROOT_SIZE=$((TOTAL_SIZE - BOOT_SIZE)) +# Extend to reserve some free space. BOOT_SIZE=$((BOOT_SIZE * 2)) -ROOT_SIZE=$((ROOT_SIZE + 800 * 1024 * 1024)) +ROOT_SIZE=$((ROOT_SIZE + 10 * 1024 * 1024 * 1024)) BLOCK_SIZE=512