From d15cfafeef8f99ff1a47e77362d0adf1b07f26ae Mon Sep 17 00:00:00 2001 From: Eric Bénard Date: Fri, 7 Jan 2011 17:35:28 +0100 Subject: defaultenv/bin/boot: make ubi root's name configurable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit all root are not named root so give the possibility to configure this in the config file. Signed-off-by: Eric Bénard Signed-off-by: Sascha Hauer --- defaultenv/bin/boot | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'defaultenv') diff --git a/defaultenv/bin/boot b/defaultenv/bin/boot index 42c7ec2965..509b4632c4 100644 --- a/defaultenv/bin/boot +++ b/defaultenv/bin/boot @@ -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 -- cgit v1.2.3