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:
parent
22ef325692
commit
d15cfafeef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue