Skip to content

Commit

Permalink
Updating internal cmdline handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Jun 5, 2012
1 parent bc9ae2d commit a76532c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
9 changes: 8 additions & 1 deletion scripts/boot.sh
Expand Up @@ -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)
Expand Down
21 changes: 10 additions & 11 deletions scripts/boot/arguments.sh → scripts/boot/cmdline.sh
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit a76532c

Please sign in to comment.