base-files: safer sysupgrade.tar for kernel-out-of-UBI
authorRodrigo Balerdi <lanchon@gmail.com>
Fri, 15 Apr 2022 06:24:58 +0000 (03:24 -0300)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 19 Apr 2022 15:28:25 +0000 (16:28 +0100)
commitecbcc0b595516d059092b89efbef69b93cf97f6a
tree1ced1d69075975ab8bcf70d22f8575de7d603ea2
parent073dc450b5ca91cfffd9097f0e3900dd390be399
base-files: safer sysupgrade.tar for kernel-out-of-UBI

Ensure that the kernel CRC is invalidated while rootfs is being updated.
This allows the bootloader to detect an interrupted sysupgrade and fall
back to an alternate booting method, such as TFTP, instead of just going
ahead with normal boot and effectively bricking the device.

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