summaryrefslogtreecommitdiffstats
path: root/defaultenv
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2011-01-07 17:35:28 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-01-08 13:26:48 +0100
commitd15cfafeef8f99ff1a47e77362d0adf1b07f26ae (patch)
tree41bc31867cfd3459c71301e21a975a590cc5508e /defaultenv
parent22ef32569273aef7b614bc7ef2d602b5e1be7221 (diff)
downloadbarebox-d15cfafeef8f99ff1a47e77362d0adf1b07f26ae.tar.gz
barebox-d15cfafeef8f99ff1a47e77362d0adf1b07f26ae.tar.xz
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>
Diffstat (limited to 'defaultenv')
-rw-r--r--defaultenv/bin/boot5
1 files changed, 4 insertions, 1 deletions
diff --git a/defaultenv/bin/boot b/defaultenv/bin/boot
index 42c7ec296..509b4632c 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