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:
parent
b49e601449
commit
86ddd55dda
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue