From 0f89bb943f1bc3b18b48b011e682a00c1741af72 2018-08-04 20:49:54 From: drtyhlpr Date: 2018-08-04 20:49:54 Subject: [PATCH] increased fs overhead from 25% to 35% the goal is to keep the generated images as small as possible. hope 35% is enough --- diff --git a/rpi23-gen-image.sh b/rpi23-gen-image.sh index f8e65fb..7a0adb3 100755 --- a/rpi23-gen-image.sh +++ b/rpi23-gen-image.sh @@ -556,8 +556,8 @@ ROOT_OFFSET=$(expr ${TABLE_SECTORS} + ${FRMW_SECTORS}) # The root partition is EXT4 # This means more space than the actual used space of the chroot is used. -# As overhead for journaling and reserved blocks 25% are added. -ROOT_SECTORS=$(expr $(expr ${CHROOT_SIZE} + ${CHROOT_SIZE} \/ 100 \* 25) \* 1024 \/ 512) +# As overhead for journaling and reserved blocks 35% are added. +ROOT_SECTORS=$(expr $(expr ${CHROOT_SIZE} + ${CHROOT_SIZE} \/ 100 \* 35) \* 1024 \/ 512) # Calculate required image size in 512 Byte sectors IMAGE_SECTORS=$(expr ${TABLE_SECTORS} + ${FRMW_SECTORS} + ${ROOT_SECTORS})