sysupgrade otherwise skips kernel part on devices which got
kernel in ubi due to kern_length being undefined, kernel_length
is being used instead.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41327
3c298f89-4303-0410-b956-
a3cf2f4a3e73
-# 'data' partition on NAND contains UBI
+# 'ubi' partition on NAND contains UBI
CI_UBIPART="ubi"
nand_find_volume() {
CI_UBIPART="ubi"
nand_find_volume() {
[ "$has_kernel" = "1" ] && {
local kern_ubivol="$(nand_find_volume $ubidev kernel)"
tar xf $tar_file sysupgrade-$board_name/kernel -O | \
[ "$has_kernel" = "1" ] && {
local kern_ubivol="$(nand_find_volume $ubidev kernel)"
tar xf $tar_file sysupgrade-$board_name/kernel -O | \
- ubiupdatevol /dev/$kern_ubivol -s $kern_length -
+ ubiupdatevol /dev/$kern_ubivol -s $kernel_length -
}
local root_ubivol="$(nand_find_volume $ubidev rootfs)"
}
local root_ubivol="$(nand_find_volume $ubidev rootfs)"