From 188328111b46ebc9592ee0f5cbcd2439d1c4aef0 Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Mon, 18 Dec 2017 20:32:18 +0100 Subject: treewide: move nand_do_upgrade call to platform_do_upgrade Calling nand_do_upgrade() from platform_pre_upgrade() was deprecated with 30f61a34b4cf ("base-files: always use staged sysupgrade"). Update the platform upgrade code to use platform_do_upgrade() for NAND images as well. Signed-off-by: Mathias Kresin --- target/linux/pistachio/base-files/lib/upgrade/platform.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/pistachio') diff --git a/target/linux/pistachio/base-files/lib/upgrade/platform.sh b/target/linux/pistachio/base-files/lib/upgrade/platform.sh index 4edc06bf9f..d7d2ba065a 100755 --- a/target/linux/pistachio/base-files/lib/upgrade/platform.sh +++ b/target/linux/pistachio/base-files/lib/upgrade/platform.sh @@ -18,7 +18,7 @@ platform_check_image() return $? } -platform_pre_upgrade() { +platform_do_upgrade() { # TODO no need to switch to ramfs with dual partitions in # fact we don't even want to reboot as part of seamless # upgrades. Instead just upgrade opposite partition and mark -- cgit v1.2.3