linux-openmoko: upgrade kernel in NAND partition also if rootfs is ubi (not only...
authorMartin Jansa <Martin.Jansa@gmail.com>
Wed, 21 Jul 2010 11:14:30 +0000 (13:14 +0200)
committerMartin Jansa <Martin.Jansa@gmail.com>
Wed, 21 Jul 2010 11:15:45 +0000 (13:15 +0200)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes/linux/linux-openmoko.inc

index c8c38d0..8516954 100644 (file)
@@ -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"