[source] oxnas: require image metadata

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 7 06:40:55 PST 2017


dangole pushed a commit to source.git, branch master:
https://git.lede-project.org/69903c3ee6843d6d65185dd15096471ac5fa6585

commit 69903c3ee6843d6d65185dd15096471ac5fa6585
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sat Jan 7 14:46:03 2017 +0100

    oxnas: require image metadata
    
    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 at makrotopia.org>
---
 target/linux/oxnas/base-files/lib/upgrade/platform.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/oxnas/base-files/lib/upgrade/platform.sh b/target/linux/oxnas/base-files/lib/upgrade/platform.sh
index 006dd0d..48c1dc3 100644
--- a/target/linux/oxnas/base-files/lib/upgrade/platform.sh
+++ b/target/linux/oxnas/base-files/lib/upgrade/platform.sh
@@ -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)



More information about the lede-commits mailing list