ar71xx: Fix sysupgrade when upgrading to images with small rootfs partition
authoracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 13 Oct 2013 18:39:09 +0000 (18:39 +0000)
committeracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 13 Oct 2013 18:39:09 +0000 (18:39 +0000)
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38382 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 356da2d..28e4a91 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=""