aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2010-07-21 13:14:30 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2010-07-21 13:15:45 +0200
commit99f1588f4dd095151ab7d073144ca42b6a8ee5fe (patch)
treeec4f300da71e9928f6dc2c859387330c9dbbba95 /recipes/linux
parent5fba14fa819ed873daa515e03ac65c303f6f9613 (diff)
downloadopenembedded-99f1588f4dd095151ab7d073144ca42b6a8ee5fe.tar.gz
linux-openmoko: upgrade kernel in NAND partition also if rootfs is ubi (not only mtdblock)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes/linux')
-rw-r--r--recipes/linux/linux-openmoko.inc3
1 files changed, 2 insertions, 1 deletions
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"