[PATCH 2/7] defaultenv/bin/boot: make ubi root's name configurable

Eric Bénard eric at eukrea.com
Fri Jan 7 11:35:28 EST 2011


all root are not named root so give the possibility to
configure this in the config file.

Signed-off-by: Eric Bénard <eric at eukrea.com>
---
 defaultenv/bin/boot |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/defaultenv/bin/boot b/defaultenv/bin/boot
index 42c7ec2..509b463 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
-- 
1.7.3.4




More information about the barebox mailing list