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)
committerJo-Philipp Wich <jo@mein.io>
Wed, 4 Sep 2019 11:27:19 +0000 (13:27 +0200)
commitd6840e7b44faa5372676d40c106d2e5d6c3d0d45
treebee645f71a5151dfe46f0ecb1b670a0c02f4b6f7
parent0f4a3be2f424ca137c0cbc5f1fbab8c1fd24d7cc
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