Bugfix - when building Xenial desktop on Orange Pi legacy 20% overhead is not enought. We don't count the size of kernel, firmware, ...

This commit is contained in:
Igor Pecovnik 2016-05-17 13:51:34 +02:00
parent 5b05e26572
commit 040e081164

View File

@ -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