mvebu: fix sysupgrade
authorAaron Curley <accwebs@gmail.com>
Sun, 2 Oct 2016 20:15:25 +0000 (13:15 -0700)
committerJohn Crispin <john@phrozen.org>
Tue, 4 Oct 2016 09:50:48 +0000 (11:50 +0200)
sysupgrade command fails due to missing U-Boot environment-processing binaries on sysupgrade ramdisk. The missing binaries result in the following output:
Switching to ramdisk...
Performing system upgrade...
ash: /usr/sbin/fw_printenv: not found
ash: fw_setenv: not found
ash: touch: not found
cannot find target partition

Fixes FS#197.

Signed-off-by: Aaron Curley <accwebs@gmail.com>
target/linux/mvebu/base-files/lib/upgrade/linksys.sh

index baa29dc335fe93345f5733c93cb426f3abdbe880..d12c32b7fa4fb962cec083c51fee4ddf35d9bb41 100644 (file)
@@ -89,3 +89,5 @@ linksys_preupgrade() {
        esac
 }
 
+append sysupgrade_pre_upgrade linksys_preupgrade
+