base-files: more robust sysupgrade on NAND
authorDaniel Golle <daniel@makrotopia.org>
Wed, 13 Apr 2022 13:51:34 +0000 (14:51 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 15 Apr 2022 13:11:59 +0000 (14:11 +0100)
commit6fe3852d47de88e575cbbde0745c7e1ba719a909
treedc153f7db6fa34399ae03aa235226c85c6bf92d8
parent5e617186404ce578adf4ec3f2f1c90fd671c8f9b
base-files: more robust sysupgrade on NAND

Make sure sysupgrade on NAND also works in case of UBI volumes having
index >9. While at it, also make sure UBI device is detected and abort
in case it isn't. Use Shell built-in shorthand ':' instead of 'true'.

Fixes #9708
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 0dbca1b2baf9c26514b517a1e5860f6a5b04d5ae)
package/base-files/files/lib/upgrade/nand.sh