diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2013-11-08 10:16:25 +0100 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-11-08 10:16:25 +0100 |
commit | 7020a6ae259420a631ce731bb0c4f0effd7cdc19 (patch) | |
tree | d2258a0d61d8c6576de30e14af38fa999313b07a /components/9990-initramfs-tools.sh | |
parent | ca6f9b5a58e8989555281fb31593c34ce3a4d573 (diff) | |
download | live-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-x | components/9990-initramfs-tools.sh | 11 |
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" |