treewide: sysupgrade: pass "save_partitions" option to the "sysupgrade" method
[openwrt/staging/jogo.git] / target / linux / sunxi / base-files / lib / upgrade / platform.sh
index abe910b154c7de928687abde7707ee58da8d59d5..c8b0175fd58c56fadac29db3462e0e04df37274c 100644 (file)
@@ -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