diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2019-07-03 09:51:49 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-04 13:27:19 +0200 |
commit | d6840e7b44faa5372676d40c106d2e5d6c3d0d45 (patch) | |
tree | bee645f71a5151dfe46f0ecb1b670a0c02f4b6f7 /package/base-files/files/sbin/sysupgrade | |
parent | 0f4a3be2f424ca137c0cbc5f1fbab8c1fd24d7cc (diff) | |
download | upstream-d6840e7b44faa5372676d40c106d2e5d6c3d0d45.tar.gz upstream-d6840e7b44faa5372676d40c106d2e5d6c3d0d45.tar.bz2 upstream-d6840e7b44faa5372676d40c106d2e5d6c3d0d45.zip |
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)
Diffstat (limited to 'package/base-files/files/sbin/sysupgrade')
-rwxr-xr-x | package/base-files/files/sbin/sysupgrade | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade index 54d7a64b48..73291262e7 100755 --- a/package/base-files/files/sbin/sysupgrade +++ b/package/base-files/files/sbin/sysupgrade @@ -363,7 +363,7 @@ fi install_bin /sbin/upgraded v "Commencing upgrade. Closing all shell sessions." -COMMAND='. /lib/functions.sh; include /lib/upgrade; do_upgrade_stage2' +COMMAND='/lib/upgrade/do_stage2' if [ -n "$FAILSAFE" ]; then printf '%s\x00%s\x00%s' "$RAM_ROOT" "$IMAGE" "$COMMAND" >/tmp/sysupgrade |