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>
Wed, 13 Apr 2022 18:50:45 +0000 (19:50 +0100)
commit0dbca1b2baf9c26514b517a1e5860f6a5b04d5ae
tree8bbbc5442990a199d18cec45b7b585a608ac4d21
parent435d7a052bf1b6a3a01cb3ad6cda6ba4b25b1879
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>
package/base-files/files/lib/upgrade/nand.sh