Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Splitting out already reviewed cmdline parsing script.
- Loading branch information
1 parent
e0d9e29
commit 20830fe
Showing
3 changed files
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/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-boot.verify-checksums|verify-checksums) | ||
LIVE_VERIFY_CHECKSUMS="true" | ||
;; | ||
|
||
# Special options | ||
live-boot.debug|debug) | ||
LIVE_DEBUG="true" | ||
;; | ||
esac | ||
done | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ Main () | |
|
||
_CMDLINE="$(cat /proc/cmdline)" | ||
Cmdline | ||
Cmdline_old | ||
|
||
case "${LIVE_DEBUG}" in | ||
true) | ||
|