summaryrefslogtreecommitdiff
path: root/components/9990-initramfs-tools.sh
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-11-08 10:16:25 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-11-08 10:16:25 +0100
commit7020a6ae259420a631ce731bb0c4f0effd7cdc19 (patch)
treed2258a0d61d8c6576de30e14af38fa999313b07a /components/9990-initramfs-tools.sh
parentca6f9b5a58e8989555281fb31593c34ce3a4d573 (diff)
downloadlive-boot-7020a6ae259420a631ce731bb0c4f0effd7cdc19.tar.gz
live-boot-7020a6ae259420a631ce731bb0c4f0effd7cdc19.zip
Reading in panic boot parameter when overloading initramfs-tools panic() (Closes: #729041).
Diffstat (limited to 'components/9990-initramfs-tools.sh')
-rwxr-xr-xcomponents/9990-initramfs-tools.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/components/9990-initramfs-tools.sh b/components/9990-initramfs-tools.sh
index 5354134..210579d 100755
--- a/components/9990-initramfs-tools.sh
+++ b/components/9990-initramfs-tools.sh
@@ -25,7 +25,16 @@ maybe_break()
}
# Override panic from scripts/functions
-panic() {
+panic()
+{
+ for _PARAMETER in ${LIVE_BOOT_CMDLINE}
+ do
+ case "${_PARAMETER}" in
+ panic=*)
+ panic="${_PARAMETER#*verify-checksums=}"
+ ;;
+ esac
+ done
DEB_1="\033[1;31m .''\`. \033[0m"
DEB_2="\033[1;31m: :' : \033[0m"