openwrt-mirror/package/base-files/files/lib/upgrade
Rodrigo Balerdi 9710712120 base-files: accept gzipped nand sysupgrade images
When firmware images only contained compressed kernels and squashfs roots,
uncompressed tar files were a good option. We are now using UBIFS images,
both raw and tarred, as well as ubinized (full UBI partition) images, all
of which benefit greatly from compression.

For example, a raw ubinized backup taken from a running Askey RT4230W REV6
(such full backups can be restored via the LUCI's sysupgrade UI) is over
400 MB, but compresses to less than 10 MB.

This commit adds support for gzipped versions of all file types already
accepted by the nand sysupgrade mechanism, be them raw or tarred.

Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com>
2022-10-30 14:29:56 +00:00
..
keep.d base-files: Add /etc/shinit for non-login shell init 2020-03-01 21:35:59 +01:00
common.sh ipq40xx: Support Chromium OS image-type creation 2022-03-25 18:14:13 +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: Align rootfs_data upgrades to 64KiB on eMMC 2022-03-16 17:50:06 +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: accept gzipped nand sysupgrade images 2022-10-30 14:29:56 +00:00
stage2 base-files: fix ubinized nand sysupgrade 2022-10-30 14:29:56 +00:00