From 8d9e80cd561fadd44bf8128920b8bd6c6073ee0c Mon Sep 17 00:00:00 2001 From: Marek Szyprowski Date: Fri, 22 Jan 2021 11:57:03 +0100 Subject: [PATCH] scripts: tizen: sd_fusing_rpi3: adjust extended partition size calculation With so many partitions defined (currently 11), the extended partition has to be larger regardless the sfdisk tool version, otherwise, the last partition will be smaller than the requested size. Without this fix, fdisk from util-linux 2.33.1 creates the last partition of 125,5M instead of 128M. Signed-off-by: Marek Szyprowski Change-Id: Ib4cc3608bc6050b59ece57e803246d465185d65b --- scripts/tizen/sd_fusing_rpi3.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/tizen/sd_fusing_rpi3.sh b/scripts/tizen/sd_fusing_rpi3.sh index bbf97410d8..1c7edd0a3f 100755 --- a/scripts/tizen/sd_fusing_rpi3.sh +++ b/scripts/tizen/sd_fusing_rpi3.sh @@ -172,11 +172,7 @@ function mkpart_3 () { local -r INFORM_SZ=8 local -r RESERVED1_SZ=64 local -r RESERVED2_SZ=128 - if [ $sfdisk_new == 1 ]; then - local -r EXTEND_SZ=8 - else - local -r EXTEND_SZ=12 - fi + local -r EXTEND_SZ=12 let "USER_SZ = $SIZE_MB - $BOOT_SZ - $ROOTFS_SZ - $DATA_SZ - $MODULE_SZ - $RAMDISK_SZ - $RAMDISK_RECOVERY_SZ - $INFORM_SZ - $EXTEND_SZ - $RESERVED1_SZ - $RESERVED2_SZ" -- 2.34.1