summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-06-05 18:23:15 +0200
committerDaniel Baumann <daniel@debian.org>2012-06-05 19:35:56 +0200
commita76532ce1ffc67df5f94b1483e53661756112584 (patch)
treeb3ee8b8ecee25e85f1fca49591d89d5ed49d6d94
parentbc9ae2d777db55ecb3697185da60ece205b1b90b (diff)
downloadlive-boot-a76532ce1ffc67df5f94b1483e53661756112584.tar.gz
live-boot-a76532ce1ffc67df5f94b1483e53661756112584.zip
Updating internal cmdline handling.
-rwxr-xr-xscripts/boot.sh9
-rwxr-xr-xscripts/boot/cmdline.sh (renamed from scripts/boot/arguments.sh)21
2 files changed, 18 insertions, 12 deletions
diff --git a/scripts/boot.sh b/scripts/boot.sh
index d2a5c62..6304c97 100755
--- a/scripts/boot.sh
+++ b/scripts/boot.sh
@@ -444,7 +444,14 @@ mountroot ()
. /live.vars
- Arguments
+ _CMDLINE="$(cat /proc/cmdline)"
+ Cmdline
+
+ case "${LIVE_DEBUG}" in
+ true)
+ set -x
+ ;;
+ esac
case "${LIVE_READ_ONLY}" in
true)
diff --git a/scripts/boot/arguments.sh b/scripts/boot/cmdline.sh
index 5f34512..18a9a2c 100755
--- a/scripts/boot/arguments.sh
+++ b/scripts/boot/cmdline.sh
@@ -2,11 +2,11 @@
#set -e
-Arguments ()
+Cmdline ()
{
- for ARGUMENT in $(cat /proc/cmdline)
+ for _PARAMETER in ${_CMDLINE}
do
- case "${ARGUMENT}" in
+ case "${_PARAMETER}" in
live-boot.read-only|read-only)
LIVE_READ_ONLY="true"
export LIVE_READ_ONLY
@@ -17,7 +17,13 @@ Arguments ()
export LIVE_VERIFY_CHECKSUMS
;;
- # parameters below need review
+ # Special options
+ live-boot.debug|debug)
+ LIVE_DEBUG="true"
+ ;;
+
+
+ # parameters below need review (FIXME)
skipconfig)
NOFASTBOOT="true"
NOFSTAB="true"
@@ -30,13 +36,6 @@ Arguments ()
BOOTIF="${x#BOOTIF=}"
;;
- debug)
- DEBUG="true"
- export DEBUG
-
- set -x
- ;;
-
dhcp)
# Force dhcp even while netbooting
# Use for debugging in case somebody works on fixing dhclient