diff options
author | Eric Bénard <eric@eukrea.com> | 2011-01-07 17:35:28 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-08 13:26:48 +0100 |
commit | d15cfafeef8f99ff1a47e77362d0adf1b07f26ae (patch) | |
tree | 41bc31867cfd3459c71301e21a975a590cc5508e /defaultenv | |
parent | 22ef32569273aef7b614bc7ef2d602b5e1be7221 (diff) | |
download | barebox-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/boot | 5 |
1 files changed, 4 insertions, 1 deletions
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 |