9
0
Fork 0

defaultenv/bin/boot: make ubi root's name configurable

all root are not named root so give the possibility to
configure this in the config file.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Eric Bénard 2011-01-07 17:35:28 +01:00 committed by Sascha Hauer
parent 22ef325692
commit d15cfafeef
1 changed files with 4 additions and 1 deletions

View File

@ -34,7 +34,10 @@ else
fi
if [ x$rootfs_type = xubifs ]; then
bootargs="$bootargs root=ubi0:root ubi.mtd=$rootfs_mtdblock"
if [ x$ubiroot = x ]; then
ubiroot = "root"
fi
bootargs="$bootargs root=ubi0:$ubiroot ubi.mtd=$rootfs_mtdblock"
else
bootargs="$bootargs root=/dev/mtdblock$rootfs_mtdblock"
fi