Skip to content

Commit

Permalink
Allowing to superseed live-boot cmdline through configuration files.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed May 28, 2013
1 parent 1b6cb3d commit f788126
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion scripts/boot/0010-debug
Expand Up @@ -4,7 +4,7 @@

Debug ()
{
for _PARAMETER in ${_CMDLINE}
for _PARAMETER in ${LIVE_BOOT_CMDLINE}
do
case "${_PARAMETER}" in
live-boot.debug|debug)
Expand Down
2 changes: 1 addition & 1 deletion scripts/boot/0020-read-only
Expand Up @@ -4,7 +4,7 @@

Read_only ()
{
for _PARAMETER in ${_CMDLINE}
for _PARAMETER in ${LIVE_BOOT_CMDLINE}
do
case "${_PARAMETER}" in
live-boot.read-only=*|read-only=*)
Expand Down
2 changes: 1 addition & 1 deletion scripts/boot/0030-verify-checksums
Expand Up @@ -4,7 +4,7 @@

Verify_checksums ()
{
for _PARAMETER in ${_CMDLINE}
for _PARAMETER in ${LIVE_BOOT_CMDLINE}
do
case "${_PARAMETER}" in
live-boot.verify-checksums=*|verify-checksums=*)
Expand Down
2 changes: 1 addition & 1 deletion scripts/boot/3020-swapon
Expand Up @@ -4,7 +4,7 @@

Swap ()
{
for _PARAMETER in ${_CMDLINE}
for _PARAMETER in ${LIVE_BOOT_CMDLINE}
do
case "${_PARAMETER}" in
live-boot.swap=*|swap=*)
Expand Down
2 changes: 1 addition & 1 deletion scripts/boot/9990-cmdline-old
Expand Up @@ -4,7 +4,7 @@

Cmdline_old ()
{
for _PARAMETER in ${_CMDLINE}
for _PARAMETER in ${LIVE_BOOT_CMDLINE}
do
case "${_PARAMETER}" in
skipconfig)
Expand Down
2 changes: 1 addition & 1 deletion scripts/boot/9990-main.sh
Expand Up @@ -18,7 +18,7 @@ Live ()

. /live.vars

_CMDLINE="$(cat /proc/cmdline)"
LIVE_BOOT_CMDLINE="${LIVE_BOOT_CMDLINE:-$(cat /proc/cmdline)}"
Cmdline_old

Debug
Expand Down
4 changes: 2 additions & 2 deletions scripts/boot/9990-select-eth-device.sh
Expand Up @@ -6,7 +6,7 @@ Select_eth_device ()
bootconf=$(egrep '^BOOT=' /conf/initramfs.conf | tail -1)

# can be superseded by command line (used by Debian-Live's netboot for example)
for ARGUMENT in ${_CMDLINE}
for ARGUMENT in ${LIVE_BOOT_CMDLINE}
do
case "${ARGUMENT}" in
netboot=*)
Expand Down Expand Up @@ -46,7 +46,7 @@ Select_eth_device ()
fi

# If user force to use specific device, write it
for ARGUMENT in ${_CMDLINE}
for ARGUMENT in ${LIVE_BOOT_CMDLINE}
do
case "${ARGUMENT}" in
live-netdev=*)
Expand Down

0 comments on commit f788126

Please sign in to comment.