base-files: move stage2 upgrade to separated file
authorRafał Miłecki <rafal@milecki.pl>
Wed, 3 Jul 2019 07:51:49 +0000 (09:51 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 19:58:05 +0000 (15:58 -0400)
commitb5bd0c66ca46eed539f6edafe39967012e8fd753
tree7d9549706ca12957018b5ce269bde35f8ac4fda6
parentce5ddbcc6efdcba7eeb00c7e37eda7dc42d88b19
base-files: move stage2 upgrade to separated file

do_upgrade_stage2() isn't really any common code. It isn't used anywhere
except for /sbin/sysupgrade that passes it to the stage2.

Moving its code to separated file also simplifies COMMAND variable.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit f7edd94a6588aa6a3e2e7a72410a34392a9fbe78)
package/base-files/files/lib/upgrade/common.sh
package/base-files/files/lib/upgrade/do_stage2 [new file with mode: 0755]
package/base-files/files/lib/upgrade/stage2
package/base-files/files/sbin/sysupgrade