[BOARD] add "dialog" box for RESIZE procedure (#36)

in firstboot script
This commit is contained in:
Apaczer
2023-05-30 18:50:51 +02:00
committed by GitHub
parent b430a7b54e
commit fe6a544606
3 changed files with 7 additions and 4 deletions

View File

@@ -53,10 +53,12 @@ if test -r "${BASEDIR}/firstboot.custom.sh"; then
fi fi
echo echo " "
sleep 1
# resize the main partition if requested # resize the main partition if requested
if test -e "${MOUNTDIR}/resize"; then if ((test -e "${MOUNTDIR}/resize") && !(dialog --defaultno --yes-label NO --no-label YES --stdout --timeout 10 --title " Expand MAIN partition?" \
--colors --yesno "\n\n \ZuSelect an option & press START\Zn\n\n \ZbWARNING:\Zn\n After 10s auto-resize\n of FAT32 partition will begin." 12 60)); then
clear
echo "Going to resize the MAIN partition." | tee -a ${LOG} echo "Going to resize the MAIN partition." | tee -a ${LOG}
echo "This can take A LONG TIME, so be patient." | tee -a ${LOG} echo "This can take A LONG TIME, so be patient." | tee -a ${LOG}
umount /dev/mmcblk0p4 | tee -a ${LOG} umount /dev/mmcblk0p4 | tee -a ${LOG}

0
board/miyoo/boot/resize Normal file
View File

View File

@@ -11,7 +11,8 @@ image bootfs.vfat {
"boot/firstboot", "boot/firstboot",
"boot/firstboot.custom.sh-OFF", "boot/firstboot.custom.sh-OFF",
"boot/modules.custom.sh", "boot/modules.custom.sh",
"boot/normalboot.custom.sh" "boot/normalboot.custom.sh",
"boot/resize"
} }
file configs/manifest { file configs/manifest {
image = "boot/configs/manifest" image = "boot/configs/manifest"