summaryrefslogtreecommitdiff
path: root/scripts/boot/0110-cmdline
blob: aa122869ce2c83674805cbf2d6b0f7030a49d848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

#set -e

Cmdline ()
{
	for _PARAMETER in ${_CMDLINE}
	do
		case "${_PARAMETER}" in
			live-boot.read-only|read-only)
				LIVE_READ_ONLY="true"
				;;

			live-boot.swapon=*|swapon=*)
				LIVE_SWAPON="true"
				LIVE_SWAPON_DEVICES="${_PARAMETER#*swapon=}"
				;;

			live-boot.swapon|swapon)
				LIVE_SWAPON="true"
				;;

			live-boot.verify-checksums|verify-checksums)
				LIVE_VERIFY_CHECKSUMS="true"
				;;

			# Special options
			live-boot.debug|debug)
				LIVE_DEBUG="true"
				;;
		esac
	done
}