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 baa29dc..d12c32b 100644 (file)
@@ -89,3 +89,5 @@ linksys_preupgrade() {
        esac
 }
 
+append sysupgrade_pre_upgrade linksys_preupgrade
+