[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
This commit is contained in:
Apaczer
2023-08-11 22:57:34 +02:00
parent 358fc27372
commit 6cebb50b07

View File

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