aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"