summaryrefslogtreecommitdiffstats
path: root/defaultenv-2/base/bin/bootargs-root-ext
blob: dbdddb9fccb54f60abeb1d07df92f344a7a38569 (plain)
1
2
3
4
5
6
7
8
9
10
11
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.dyn.root="root=/dev/$part rootfstype=ext$type rootwait"