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)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 11 Jul 2019 15:05:20 +0000 (17:05 +0200)
commitf7edd94a6588aa6a3e2e7a72410a34392a9fbe78
tree9b684e7048a839e04819e663355b39d3c01c417f
parent087e14ab5994986802739b57e2de227760102bf4
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>
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