Skip to content

Commit

Permalink
FIRSTBOOT: add partprobe to re-read partition table after resize and …
Browse files Browse the repository at this point in the history
…remove reboot
  • Loading branch information
tiopex committed Nov 26, 2024
1 parent 0f3be01 commit d2e7336
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions board/miyoo/boot/firstboot
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d2e7336

Please sign in to comment.