Allowing to superseed live-boot cmdline through configuration files.
authorDaniel Baumann <mail@daniel-baumann.ch>
Tue, 28 May 2013 04:52:33 +0000 (06:52 +0200)
committerDaniel Baumann <mail@daniel-baumann.ch>
Tue, 28 May 2013 04:52:33 +0000 (06:52 +0200)
scripts/boot/0010-debug
scripts/boot/0020-read-only
scripts/boot/0030-verify-checksums
scripts/boot/3020-swapon
scripts/boot/9990-cmdline-old
scripts/boot/9990-main.sh
scripts/boot/9990-select-eth-device.sh

index 9b57d56..cfb2fc8 100755 (executable)
@@ -4,7 +4,7 @@
 
 Debug ()
 {
-       for _PARAMETER in ${_CMDLINE}
+       for _PARAMETER in ${LIVE_BOOT_CMDLINE}
        do
                case "${_PARAMETER}" in
                        live-boot.debug|debug)
index 859f771..fc0dde0 100755 (executable)
@@ -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=*)
index 08b2972..3249b34 100755 (executable)
@@ -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=*)
index 3df90de..a1bcdbe 100755 (executable)
@@ -4,7 +4,7 @@
 
 Swap ()
 {
-       for _PARAMETER in ${_CMDLINE}
+       for _PARAMETER in ${LIVE_BOOT_CMDLINE}
        do
                case "${_PARAMETER}" in
                        live-boot.swap=*|swap=*)
index 18bb6c3..8bb8254 100755 (executable)
@@ -4,7 +4,7 @@
 
 Cmdline_old ()
 {
-       for _PARAMETER in ${_CMDLINE}
+       for _PARAMETER in ${LIVE_BOOT_CMDLINE}
        do
                case "${_PARAMETER}" in
                        skipconfig)
index 8776a7d..e67176e 100755 (executable)
@@ -18,7 +18,7 @@ Live ()
 
        . /live.vars
 
-       _CMDLINE="$(cat /proc/cmdline)"
+       LIVE_BOOT_CMDLINE="${LIVE_BOOT_CMDLINE:-$(cat /proc/cmdline)}"
        Cmdline_old
 
        Debug
index 14fa4ef..7d1aa16 100755 (executable)
@@ -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=*)
@@ -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=*)