Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com>
Cc: Brian Lilly <br...@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


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

Reply via email to