procd: fix nand.sh kernel_length typo
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> SVN-Revision: 41327
This commit is contained in:
parent
22a35a7b11
commit
9b714b6e7b
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
. /lib/functions.sh
|
||||
|
||||
# 'data' partition on NAND contains UBI
|
||||
# 'ubi' partition on NAND contains UBI
|
||||
CI_UBIPART="ubi"
|
||||
|
||||
nand_find_volume() {
|
||||
|
@ -242,7 +242,7 @@ nand_upgrade_tar() {
|
|||
[ "$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)"
|
||||
|
|
Loading…
Reference in a new issue