Skip to content

Commit

Permalink
[FIRSTBOOT] use test -gt instead for SD check
Browse files Browse the repository at this point in the history
however we operate on binary values se it will be still 119GB big in reality for 128GB metric
  • Loading branch information
Apaczer committed Aug 11, 2023
1 parent 358fc27 commit 6cebb50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/miyoo/boot/firstboot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6cebb50

Please sign in to comment.