From 457e1b5ff968141f8d10fdeb3147b38d106debf7 Mon Sep 17 00:00:00 2001 From: Johan Gunnarsson Date: Tue, 19 Oct 2021 23:36:48 +0200 Subject: [PATCH] Revert "build-image: Increase image size to 4 GB" This reverts commit c848f846c6f032cedfb458c4356dddd1721940e1. --- scripts/build-image | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/build-image b/scripts/build-image index 193b362..7e3afe0 100755 --- a/scripts/build-image +++ b/scripts/build-image @@ -5,11 +5,8 @@ IMAGE="${1}" set -ex -# Aim for a 4 GB card but with 5% unpartitioned as a margin -# >>> (0.95 * 4000000000 // 512) * 512 -# 3800000000.0 rm -f "${IMAGE}" -fallocate -v -l 3800000000 "${IMAGE}" # 3,800,000,000 bytes +fallocate -v -l 2GB "${IMAGE}" # 2,000,000,000 bytes parted -s "${IMAGE}" mklabel msdos parted -s "${IMAGE}" mkpart primary fat32 -- 4MiB 32MiB # 28 MiB (50,331,648 bytes)