openwrt/package/base-files/files/lib
Rodrigo Balerdi 073dc450b5 base-files: safer sysupgrade for kernel-in-UBI devices
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, instead of just going ahead with
normal boot and effectively bricking the device.

Possible fallbacks include a recovery initramfs partition or UBI volume
and TFTP. See here for an example U-Boot configuration with fallbacks:
https://shorturl.at/befsA (https://github.com/Lanchon/openwrt-tr4400-v2/
blob/e7d707d6bd7839fbd0b8d0bd180fce451df77e47/install-recovery.sh#L52-L63)

Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com>
2022-04-19 16:28:25 +01:00
..
functions base-files: add support for heartbeat led trigger 2022-02-19 13:10:01 +01:00
preinit base-files: bring up vlan interface too 2021-06-22 23:23:00 +02:00
upgrade base-files: safer sysupgrade for kernel-in-UBI devices 2022-04-19 16:28:25 +01:00
functions.sh base-files: allow specifiying rootdev for find_mmc_part 2021-11-01 18:00:42 +00:00