base-files: sysupgrade cleanup
authorMatthias Schiffer <mschiffer@universe-factory.net>
Sun, 23 Apr 2017 21:33:14 +0000 (23:33 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Mon, 29 May 2017 21:50:33 +0000 (23:50 +0200)
commitb2adb9a7b50fd4a887b22facf6795d71a2629397
tree1872f0d8e9a805bab29a38975524eee6787927ae
parent218af1957ecd8dd9732a74b2f263fe87ff318d4e
base-files: sysupgrade cleanup

Some functions only used by stage2 are moved there from common.sh.

One piece that could still use more cleanup is platform_pre_upgrade: many
targets reference files from there are aren't available in the ramfs, so
we need to evaluate it before the switch; conversely, flash writes happen
in that function on some targets. Targets that do the latter should be
fixed eventually to use platform_do_upgrade for that purpose.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
package/base-files/files/lib/upgrade/common.sh
package/base-files/files/lib/upgrade/stage2
package/base-files/files/sbin/sysupgrade