aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/layerscape/base-files
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tomek_n@o2.pl>2020-02-25 20:07:41 +0100
committerPetr Štetiar <ynezz@true.cz>2020-03-12 12:59:44 +0100
commit382b1572757b3b4b8cb7ad98f256244eae916bb3 (patch)
tree7a790d1f7e6cfe9b6e014c07ca3be11fa7f53bcb /target/linux/layerscape/base-files
parent295e110f872f376bc7bf2e32c8e9769f06c40999 (diff)
downloadupstream-382b1572757b3b4b8cb7ad98f256244eae916bb3.tar.gz
upstream-382b1572757b3b4b8cb7ad98f256244eae916bb3.tar.bz2
upstream-382b1572757b3b4b8cb7ad98f256244eae916bb3.zip
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>
Diffstat (limited to 'target/linux/layerscape/base-files')
-rw-r--r--target/linux/layerscape/base-files/lib/upgrade/platform.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/layerscape/base-files/lib/upgrade/platform.sh b/target/linux/layerscape/base-files/lib/upgrade/platform.sh
index a2ee81cf3a..013023295b 100644
--- a/target/linux/layerscape/base-files/lib/upgrade/platform.sh
+++ b/target/linux/layerscape/base-files/lib/upgrade/platform.sh
@@ -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