diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2019-08-16 16:54:38 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2019-08-22 13:47:47 +0200 |
commit | b534ba96110012d2697d19d71b7dcd60bd4cd375 (patch) | |
tree | 1edb2cad5a1df6839b8eeb1db7325ebd8da1f0c4 /package/base-files/files/lib/upgrade/do_stage2 | |
parent | 2b1a6d263cc84ac6189447fe971b52d8b34cea51 (diff) | |
download | upstream-b534ba96110012d2697d19d71b7dcd60bd4cd375.tar.gz upstream-b534ba96110012d2697d19d71b7dcd60bd4cd375.tar.bz2 upstream-b534ba96110012d2697d19d71b7dcd60bd4cd375.zip |
base-files: pass "save_config" option to the "sysupgrade" method
This explicitly lets stage2 know if config should be preserved.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'package/base-files/files/lib/upgrade/do_stage2')
-rwxr-xr-x | package/base-files/files/lib/upgrade/do_stage2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/upgrade/do_stage2 b/package/base-files/files/lib/upgrade/do_stage2 index 8aae452560..0e6cc1bfc3 100755 --- a/package/base-files/files/lib/upgrade/do_stage2 +++ b/package/base-files/files/lib/upgrade/do_stage2 @@ -11,7 +11,7 @@ else default_do_upgrade "$IMAGE" fi -if [ "$SAVE_CONFIG" -eq 1 ] && type 'platform_copy_config' >/dev/null 2>/dev/null; then +if [ "$UPGRADE_OPT_SAVE_CONFIG" -eq 1 ] && type 'platform_copy_config' >/dev/null 2>/dev/null; then platform_copy_config fi |