diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2019-08-16 17:02:58 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2019-08-22 13:47:51 +0200 |
commit | b6f4cd57e19a8cfcd9ff52582b65164ce6213c3d (patch) | |
tree | 35d7185909c4cbc7b44b028e0e551b07aff26b13 /target/linux/omap/base-files | |
parent | b534ba96110012d2697d19d71b7dcd60bd4cd375 (diff) | |
download | upstream-b6f4cd57e19a8cfcd9ff52582b65164ce6213c3d.tar.gz upstream-b6f4cd57e19a8cfcd9ff52582b65164ce6213c3d.tar.bz2 upstream-b6f4cd57e19a8cfcd9ff52582b65164ce6213c3d.zip |
treewide: sysupgrade: pass "save_partitions" option to the "sysupgrade" method
This explicitly lets stage2 know if partitions should be preserved. No
more "touch /tmp/sysupgrade.always.overwrite.bootdisk.partmap" hack.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/omap/base-files')
-rw-r--r-- | target/linux/omap/base-files/lib/upgrade/platform.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/omap/base-files/lib/upgrade/platform.sh b/target/linux/omap/base-files/lib/upgrade/platform.sh index abe910b154..c8b0175fd5 100644 --- a/target/linux/omap/base-files/lib/upgrade/platform.sh +++ b/target/linux/omap/base-files/lib/upgrade/platform.sh @@ -45,7 +45,7 @@ platform_do_upgrade() { sync - if [ "$SAVE_PARTITIONS" = "1" ]; then + if [ "$UPGRADE_OPT_SAVE_PARTITIONS" = "1" ]; then get_partitions "/dev/$diskdev" bootdisk #extract the boot sector from the image |