treewide: sysupgrade: pass "save_partitions" option to the "sysupgrade" method
[openwrt/openwrt.git] / target / linux / mvebu / base-files / lib / upgrade / sdcard.sh
index 5ca5e71fe7ff9cb923df87339f60ec29362adee9..3bfdce97e8d9bc531dcdee02852e48995dafcd53 100644 (file)
@@ -49,7 +49,7 @@ platform_do_upgrade_sdcard() {
 
        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