base-files: fix issues in nand sysupgrade
authorRodrigo Balerdi <lanchon@gmail.com>
Fri, 15 Apr 2022 13:11:52 +0000 (10:11 -0300)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 19 Apr 2022 15:28:25 +0000 (16:28 +0100)
commitbfd9afc38dc8a5e158aea11f89c43980396cceff
tree4de2041116e8d3a34fdc08c251d5ae0497b4c56f
parentf8351d65bb32f07a6362b136d66153073f601acb
base-files: fix issues in nand sysupgrade

Fix issues while retaining configuration during nand sysupgrade:
- abort configuration saving if data partition is not found
- generate diagnostics if saving fails (eg, because of lack of space)
- do not output "sysupgrade successful" in case of errors

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