mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-19 03:06:35 +00:00
layerscape: sysupgrade: require metadata
Require the image metadata check so no invalid image could be fed to sysupgrade without force option. Cc: Mathew McBride <matt@traverse.com.au> Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
This commit is contained in:
parent
295e110f87
commit
382b157275
@ -6,6 +6,8 @@
|
||||
RAMFS_COPY_BIN="/usr/sbin/fw_printenv /usr/sbin/fw_setenv /usr/sbin/ubinfo /bin/echo"
|
||||
RAMFS_COPY_DATA="/etc/fw_env.config /var/lock/fw_printenv.lock"
|
||||
|
||||
REQUIRE_IMAGE_METADATA=1
|
||||
|
||||
platform_do_upgrade_traverse_nandubi() {
|
||||
bootsys=$(fw_printenv bootsys | awk -F= '{{print $2}}')
|
||||
newbootsys=2
|
||||
|
@ -291,5 +291,6 @@ define Device/traverse-ls1043
|
||||
IMAGE/root = append-rootfs
|
||||
IMAGE/sysupgrade.bin = sysupgrade-tar | append-metadata
|
||||
MKUBIFS_OPTS := -m 2048 -e 124KiB -c 4096
|
||||
SUPPORTED_DEVICES := traverse,ls1043s traverse,ls1043v
|
||||
endef
|
||||
TARGET_DEVICES += traverse-ls1043
|
||||
|
Loading…
Reference in New Issue
Block a user