From 9d92ef1b440b4f8b1132c9f9778b2a0df22d2fc0 Mon Sep 17 00:00:00 2001 From: Apaczer <94932128+Apaczer@users.noreply.github.com> Date: Tue, 15 Aug 2023 22:43:30 +0200 Subject: [PATCH] [FIRSTBOOT] resize: add missing GiB var. for logs --- board/miyoo/boot/firstboot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/miyoo/boot/firstboot b/board/miyoo/boot/firstboot index 6da077cf..2eb42550 100755 --- a/board/miyoo/boot/firstboot +++ b/board/miyoo/boot/firstboot @@ -506,9 +506,10 @@ if (dialog --clear --stdout --ok-label YES --cancel-label NO --title " AUTO-RE SD_MAX_AVAIL_SIZE_IN_KiB=123731968 fi fi + SD_MAX_AVAIL_SIZE_IN_GiB=$(echo "scale=1; ${SD_MAX_AVAIL_SIZE_IN_KiB} / 1024 / 1024" | bc) #only to inform user about end point for resize SD_MAX_AVAIL_SIZE_IN_GB=$(echo "scale=1; ${SD_MAX_AVAIL_SIZE_IN_KiB} * 1024 / 1000 / 1000 / 1000" | bc) P4_SIZE_IN_GB=$(echo "scale=1; ${P4_SIZE} * 512 / 1000 / 1000 / 1000" | bc) - # roundup GiB value to 0,1GB for integer calculations: + # roundup GB value to 0,1GB for integer calculations: SD_MAX_AVAIL_SIZE_IN_GBx10=$(echo "$SD_MAX_AVAIL_SIZE_IN_GB" | tr -d ".") P4_SIZE_IN_GBx10=$(echo "$P4_SIZE_IN_GB" | tr -d ".") #Sanity checks if we don't down- or over-resize partition: