Skip to content
Snippets Groups Projects
Commit 81b5e8e5 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

base-files: add a hint in sysupgrade that shows what to do when the image metadata check fails


Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 377eac0c
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,9 @@ fwtool_check_image() {
if ! fwtool -q -i /tmp/sysupgrade.meta "$1"; then
echo "Image metadata not found"
[ "$REQUIRE_IMAGE_METADATA" = 1 -a "$FORCE" != 1 ] && {
echo "Use sysupgrade -F to override this check when downgrading or flashing to vendor firmware"
}
[ "$REQUIRE_IMAGE_METADATA" = 1 ] && return 1
return 0
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment