9
0
Fork 0

defaultenv/bin/boot: fix ubi root's name assignment

This patch fixes a regression introduced in commit
d15cfafeef.

While there, use "-z" to check if ubiroot variable is empty.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-By: Eric Bnard<eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Marc Kleine-Budde 2011-02-02 23:09:18 +01:00 committed by Sascha Hauer
parent b49e601449
commit 86ddd55dda
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ else
fi
if [ x$rootfs_type = xubifs ]; then
if [ x$ubiroot = x ]; then
ubiroot = "root"
if [ -z $ubiroot ]; then
ubiroot="root"
fi
bootargs="$bootargs root=ubi0:$ubiroot ubi.mtd=$rootfs_mtdblock"
else