From 6cebb50b07066f9631f70fcbbff4520f148685f2 Mon Sep 17 00:00:00 2001 From: Apaczer <94932128+Apaczer@users.noreply.github.com> Date: Fri, 11 Aug 2023 22:57:34 +0200 Subject: [PATCH] [FIRSTBOOT] use `test -gt` instead for SD check however we operate on binary values se it will be still 119GB big in reality for 128GB metric --- board/miyoo/boot/firstboot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/miyoo/boot/firstboot b/board/miyoo/boot/firstboot index 6ab96ba79..6da077cf3 100755 --- a/board/miyoo/boot/firstboot +++ b/board/miyoo/boot/firstboot @@ -494,7 +494,7 @@ if (dialog --clear --stdout --ok-label YES --cancel-label NO --title " AUTO-RE \n\n \ZbWARNING:\Zn\n After 10s auto-resize\n of FAT32 partition will begin." 15 60 10); then clear RESIZE_ABORT=false - if test "$SD_SIZE_IN_GiB" -ge 128; then + if test "$SD_SIZE_IN_GiB" -gt 128; then if (dialog --clear --stdout --ok-label NO --cancel-label YES --title " \Zb\Z1WARNING!\Zn" \ --colors --pause "\nYour SD card exceeds max. size for auto-resizing! \n\nWe could however expand it to 118GB. \n\n \ZuDo you AGREE?\Zn