[PATCH 1/2] Add bootargs script to boot on ext filesystems

Maxime Ripard maxime.ripard at free-electrons.com
Wed Jul 4 09:07:52 EDT 2012


Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>
Cc: Brian Lilly <brian at crystalfontz.com>
---
 defaultenv-2/base/bin/bootargs-root-ext |   12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 defaultenv-2/base/bin/bootargs-root-ext

diff --git a/defaultenv-2/base/bin/bootargs-root-ext b/defaultenv-2/base/bin/bootargs-root-ext
new file mode 100644
index 0000000..45fcd5a
--- /dev/null
+++ b/defaultenv-2/base/bin/bootargs-root-ext
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+while getopt "m:r:" opt; do
+	if [ ${opt} = m ]; then
+		part=${OPTARG}
+	fi
+	if [ ${opt} = r ]; then
+		type=${OPTARG}
+	fi
+done
+
+global.linux.bootargs.root="root=/dev/$part rootfstype=ext$type rootwait"
-- 
1.7.9.5




More information about the barebox mailing list