oxnas: add platform_pre_upgrade for sysupgrade
authorRafał Miłecki <zajec5@gmail.com>
Thu, 24 Sep 2015 09:18:59 +0000 (09:18 +0000)
committerRafał Miłecki <zajec5@gmail.com>
Thu, 24 Sep 2015 09:18:59 +0000 (09:18 +0000)
commit6b0ccdbe44097b5edcbe46148b3f8aa814142f0d
tree3a05aa367a6d33cca343406f2bcf24ce7809db02
parent9cc300c88f97ef4d554eaff4eb8efe03edff741d
oxnas: add platform_pre_upgrade for sysupgrade

We're in process of cleaning nand_do_platform_check. Currently it leaves
a special mark in /tmp/sysupgrade-nand-path triggering some diffent code
path in nand_upgrade_stage1. This can be a bit confusing.

The plan is to have the check function only check the image and nothing
else. Then platform code (platform_pre_upgrade) should trigger NAND
specific upgrade path. This is what this patch implements.

This follows all other targets making it finally possible to change
nand_do_platform_check.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 47039
target/linux/oxnas/base-files/lib/upgrade/platform.sh