treewide: sysupgrade: pass "save_partitions" option to the "sysupgrade" method
[openwrt/staging/jow.git] / target / linux / x86 / base-files / lib / upgrade / platform.sh
index 439ba8f5125d97932248ff966340165a84e1b24a..162dbaf3aaaa00539851856b67e8e6b1a5eb8b08 100644 (file)
@@ -54,7 +54,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