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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Eric BÃnard <eric@xxxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux