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
|
fi
|
||||||
|
|
||||||
if [ x$rootfs_type = xubifs ]; then
|
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
|
else
|
||||||
bootargs="$bootargs root=/dev/mtdblock$rootfs_mtdblock"
|
bootargs="$bootargs root=/dev/mtdblock$rootfs_mtdblock"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue