mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
[FIRSTBOOT] allow overwrite of logs & increase min unall. SDsize
This commit is contained in:
@@ -540,7 +540,7 @@ if (dialog --clear --stdout --ok-label YES --cancel-label NO --title " AUTO-RE
|
||||
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:
|
||||
if (test "$P4_SIZE_IN_GBx10" -ge "$SD_MAX_AVAIL_SIZE_IN_GBx10" || test "$SD_MAX_UNALL_SIZE_IN_MiB" -le 0); then
|
||||
if (test "$P4_SIZE_IN_GBx10" -ge "$SD_MAX_AVAIL_SIZE_IN_GBx10" || test "$SD_MAX_UNALL_SIZE_IN_MiB" -le 15); then
|
||||
echo "Your MAIN partition is greater than available space for resizing or you lack unallocated sectors space" | tee -a ${LOG}
|
||||
sleep 1.5
|
||||
RESIZE_ABORT=true
|
||||
@@ -612,5 +612,5 @@ if ($CONSOLE_OVERWRITE || $RESIZE_COMMENCED || test -r "${BASEDIR}/firstboot.cus
|
||||
safe_reboot_func
|
||||
else
|
||||
#just grep logs from temp directory before continuing
|
||||
mv ${LOG} ${HOME}/log_firstboot.txt
|
||||
yes | mv ${LOG} ${HOME}/log_firstboot.txt
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user