mvebu: fix sysupgrade
authorMatthias Schiffer <mschiffer@universe-factory.net>
Thu, 1 Jun 2017 16:39:12 +0000 (18:39 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Thu, 1 Jun 2017 18:41:19 +0000 (20:41 +0200)
commit5654a037689415eb06a59ec4738ae902217ab363
tree5c087c745e90069abd7e075ad5dd45247c1dff10
parent7f9143168faef445effceead08d77ecc7c3e9dc6
mvebu: fix sysupgrade

mvebu was modifying RAMFS_COPY_BIN and RAMFS_COPY_DATA from a
sysupgrade_pre_upgrade hook. As the ramfs is created from stage2, this
did not have an effect anymore after the staged sysupgrade changes.

As it doesn't really hurt to copy fw_printenv and fw_setenv
unconditionally, simply add them in /lib/upgrade/platform.sh, so stage2
will see them.

Config copying is moved to a function called by platform_copy_config, where
it belongs.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Fixes: FS#821
Fixes: 30f61a34b4cf "base-files: always use staged sysupgrade"
package/base-files/files/lib/upgrade/stage2
target/linux/mvebu/base-files/lib/upgrade/linksys.sh
target/linux/mvebu/base-files/lib/upgrade/platform.sh