oxnas: require image metadata
authorDaniel Golle <daniel@makrotopia.org>
Sat, 7 Jan 2017 13:46:03 +0000 (14:46 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 7 Jan 2017 13:47:04 +0000 (14:47 +0100)
Now that we generate images with metadata attached, require it in order
to prevent accidentally flashing the wrong image to a board.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/oxnas/base-files/lib/upgrade/platform.sh

index 006dd0d134612eaec16655993b26740da3444871..48c1dc3f847111b25e50ff4ba848907a6c61b4b1 100644 (file)
@@ -5,6 +5,7 @@
 . /lib/oxnas.sh
 
 RAMFS_COPY_DATA=/lib/oxnas.sh
+REQUIRE_IMAGE_METADATA=1
 
 platform_check_image() {
        local board=$(oxnas_board_name)