base-files: validate metadata of sysupgrade images
authorFelix Fietkau <nbd@nbd.name>
Mon, 14 Nov 2016 16:30:51 +0000 (17:30 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sat, 19 Nov 2016 10:24:09 +0000 (11:24 +0100)
commitcc853810a4aae04f1afcad3439bf9db6fc1f4852
treed653a4bcd195f6571df8d0d70e893df0978fc6ca
parent929641fa1fb23942581f64e6fa75ba87ba6111af
base-files: validate metadata of sysupgrade images

Use fwtool to extract it, only require metadata to be present if the
platform sysupgrade script sets REQUIRE_IMAGE_METADATA=1

Image metadata is in JSON format and contains a list of supported
devices, along with version information that could be displayed by a UI
later before the actual upgrade happens.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/base-files/Makefile
package/base-files/files/lib/upgrade/fwtool.sh [new file with mode: 0644]
package/base-files/files/sbin/sysupgrade