ar71xx: Fix sysupgrade when upgrading to images with small rootfs partition
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Sun, 13 Oct 2013 18:39:09 +0000 (18:39 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Sun, 13 Oct 2013 18:39:09 +0000 (18:39 +0000)
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
SVN-Revision: 38382

target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index 356da2d43baa78971367e46ae1d8ba9a147688c9..28e4a91ff1c43302b2a5dc6191d575f64e107e84 100755 (executable)
@@ -49,7 +49,7 @@ platform_do_upgrade_combined() {
 
        if [ -n "$partitions" ] && [ -n "$kernelpart" ] && \
           [ ${kern_blocks:-0} -gt 0 ] && \
-          [ ${root_blocks:-0} -gt ${kern_blocks:-0} ] && \
+          [ ${root_blocks:-0} -gt 0 ] && \
           [ ${erase_size:-0} -gt 0 ];
        then
                local append=""