base-files: fix ubinized nand sysupgrade
authorRodrigo Balerdi <lanchon@gmail.com>
Tue, 3 May 2022 06:47:43 +0000 (03:47 -0300)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 30 Oct 2022 14:29:56 +0000 (14:29 +0000)
commitaf347335939531eeb5701f52549cc4d366eb60d5
tree08ee40e4816ba536a3307075f158632f65c93dd7
parente25e6d8e5407119746cba624244a5ac1a5cdbc83
base-files: fix ubinized nand sysupgrade

It has been reported that ubinized nand sysupgrade fails under certain
circumstances, being unable to detach the existing ubi partition due to
volumes within the partition being mounted.

This is an attempt to solve such issues by unmounting and removing
ubiblock devices and unmounting ubi volumes within the target partition
prior to detaching and formatting it.

Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com>
package/base-files/files/lib/upgrade/nand.sh
package/base-files/files/lib/upgrade/stage2