From 5ae87c76b7fb2fb6e3c5ac5f4219ea652def092a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Sun, 14 Jul 2019 19:03:19 +0200 Subject: treewide: sysupgrade: don't use $ARGV in platform_do_upgrade() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit stage2 passes image path to platform_do_upgrade() as an argument so it can be simply accessed using $1 Signed-off-by: Rafał Miłecki (cherry picked from commit 8b4bc7abe073489a3595eeb2d81818852319c148) [rmilecki: dropping ARGV without this change broke sysupgrade] Fixes: 6ac62c4b6cae ("base-files: don't set ARGV and ARGC") --- target/linux/layerscape/base-files/lib/upgrade/platform.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/layerscape/base-files') diff --git a/target/linux/layerscape/base-files/lib/upgrade/platform.sh b/target/linux/layerscape/base-files/lib/upgrade/platform.sh index 1c924997e6..3bbf6f3dc6 100644 --- a/target/linux/layerscape/base-files/lib/upgrade/platform.sh +++ b/target/linux/layerscape/base-files/lib/upgrade/platform.sh @@ -17,7 +17,7 @@ platform_do_upgrade_traverse_nandubi() { CI_UBIPART="nandubi" CI_KERNPART="kernel${newbootsys}" CI_ROOTPART="rootfs${newbootsys}" - nand_do_upgrade "$ARGV" || (echo "Upgrade failed, setting bootsys ${bootsys}" && fw_setenv bootsys $bootsys) + nand_do_upgrade "$1" || (echo "Upgrade failed, setting bootsys ${bootsys}" && fw_setenv bootsys $bootsys) } platform_check_image() { @@ -42,7 +42,7 @@ platform_do_upgrade() { case "$board" in traverse,ls1043v | \ traverse,ls1043s) - platform_do_upgrade_traverse_nandubi "$ARGV" + platform_do_upgrade_traverse_nandubi "$1" ;; *) echo "Sysupgrade is not currently supported on $board" -- cgit v1.2.3