treewide: sysupgrade: pass "save_partitions" option to the "sysupgrade" method
[openwrt/staging/jow.git] / target / linux / tegra / base-files / lib / upgrade / platform.sh
index 97dd381041b1f51211e79b3453cf56462a53ccc2..66e7d91e3cb13508043c8a493f6a51ea3bc85e1f 100644 (file)
@@ -62,7 +62,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