From 99f1588f4dd095151ab7d073144ca42b6a8ee5fe Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Wed, 21 Jul 2010 13:14:30 +0200 Subject: linux-openmoko: upgrade kernel in NAND partition also if rootfs is ubi (not only mtdblock) Signed-off-by: Martin Jansa --- recipes/linux/linux-openmoko.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'recipes/linux') diff --git a/recipes/linux/linux-openmoko.inc b/recipes/linux/linux-openmoko.inc index c8c38d065e..85169543e7 100644 --- a/recipes/linux/linux-openmoko.inc +++ b/recipes/linux/linux-openmoko.inc @@ -68,10 +68,11 @@ pkg_postinst_kernel-image () { # Get the lastest root file system value of boot args boot_arg=`cat /proc/cmdline |tr " " "\n"|grep "root=" |tail -n 1` has_mtdblock=`echo $boot_arg |grep mtdblock` +has_ubi=`echo $boot_arg |grep ubi` if test "x$D" != "x"; then exit 1 -elif test "empty$has_mtdblock" != "empty"; then +elif test "empty$has_mtdblock" != "empty" -o "empty$has_ubi" != "empty"; then if [ -f ${sysconfdir}/default/flashkernel ] ; then echo "Upgrading Kernel in Flash" echo "DO NOT stop this process" -- cgit 1.2.3-korg