From d445ccfa4799eb5a5773ff670f2d667c684c7958 Mon Sep 17 00:00:00 2001 From: tiopex <67048640+tiopex@users.noreply.github.com> Date: Thu, 28 Nov 2024 17:00:45 +0100 Subject: [PATCH] FIRSTBOOT: add partprobe to re-read partition table after resize and remove reboot (#139) --- board/miyoo/boot/firstboot | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/miyoo/boot/firstboot b/board/miyoo/boot/firstboot index 56cccb32..156222b2 100644 --- a/board/miyoo/boot/firstboot +++ b/board/miyoo/boot/firstboot @@ -555,6 +555,7 @@ if (dialog --backtitle "MiyooCFW 2.0" --no-shadow --clear --stdout --ok-label YE partx -u /dev/mmcblk0 | tee -a ${LOG} mount /dev/mmcblk0p4 ${HOME} | tee -a ${LOG} btrfs filesystem resize max ${HOME} | tee -a ${LOG} + partprobe RESIZE_COMMENCED=true fi @@ -587,8 +588,8 @@ if ( $RESIZE_COMMENCED ); then fi # Reboot device if CONSOLE_VARIANT was overwritten from $CHOICE so that it could be applied in u-boot by readID -## or resizing BTRFS partition has completed / found firstboot custom script -if ($CONSOLE_OVERWRITE || $RESIZE_COMMENCED || test -r "${BASEDIR}/firstboot.custom.sh"); then +## or found firstboot custom script +if ($CONSOLE_OVERWRITE || test -r "${BASEDIR}/firstboot.custom.sh"); then safe_reboot_func else #just grep logs from temp directory before continuing