openwrt/package/base-files/files/lib/upgrade
Rodrigo Balerdi c4022e6199 base-files: emmc: invalidate kernel image while rootfs is being written
Some setups have alternate boot actions in case the main OS fails to
boot. These can include a secondary copy of the OS, a recovery OS, a
fallback to TFTP boot, etc.

This commit invalidates the kernel image while rootfs is being written
which, if a sysupgrade is interrupted, will trigger an alternate boot
action in devices that support it. This results in safer sysupgrades.

Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com>
2024-09-27 18:24:44 +01:00
..
keep.d base-files: Add /etc/shinit for non-login shell init 2020-03-01 21:35:59 +01:00
common.sh base-files: get rid of forgotten traces of fitblk_get_bootdev 2024-08-12 19:16:58 +01:00
do_stage2 treewide: sysupgrade: use $UPGRADE_BACKUP to check for backup 2019-09-11 09:05:35 +02:00
emmc.sh base-files: emmc: invalidate kernel image while rootfs is being written 2024-09-27 18:24:44 +01:00
fwtool.sh base-files: allow ignoring minor compat-version check 2022-06-18 22:11:04 +02:00
legacy-sdcard.sh base-files: rename 'sdcard' to 'legacy-sdcard' 2021-08-16 12:22:17 +01:00
nand.sh base-files: upgrade: nand: allow custom fw extraction in nand_do_upgrade() 2024-07-26 13:41:25 +02:00
stage2 base-files: sysupgrade: Add 2 sec sleep into process KILL loop 2023-09-12 14:52:50 +02:00
tar.sh base-files: sysupgrade: add tar.sh with helpers for building archives 2024-02-29 16:11:47 +01:00