From 040e0811644f3ddad6cec246ebbabf238ce7f001 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Tue, 17 May 2016 13:51:34 +0200 Subject: [PATCH] Bugfix - when building Xenial desktop on Orange Pi legacy 20% overhead is not enought. We don't count the size of kernel, firmware, ... --- debootstrap-ng.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debootstrap-ng.sh b/debootstrap-ng.sh index e6851e614c..45571ad76d 100644 --- a/debootstrap-ng.sh +++ b/debootstrap-ng.sh @@ -321,7 +321,7 @@ prepare_partitions() local imagesize=$(( $rootfs_size + $OFFSET + $BOOTSIZE )) # MiB # Hardcoded overhead +20% and +128MB for ext4 leaves ~15% free on root partition # extra 128 MiB for emergency swap file - local sdsize=$(bc -l <<< "scale=0; ($imagesize * 1.2) / 1 + 128") + local sdsize=$(bc -l <<< "scale=0; ($imagesize * 1.4) / 1 + 128") fi # stage: create blank image