X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=components%2F9990-initramfs-tools.sh;h=e6b42822c5c94664551d3d1e0060715e3f0663fa;hb=27bc786ffea0c796827b628fb48fcdd755eace9d;hp=5354134b06fa7ae7f076bdf5ab4a6f53d1fe6105;hpb=a331218718282c5496ff062a0f6aa55908224862;p=live-boot-grml.git diff --git a/components/9990-initramfs-tools.sh b/components/9990-initramfs-tools.sh index 5354134..e6b4282 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#*panic=}" + ;; + esac + done DEB_1="\033[1;31m .''\`. \033[0m" DEB_2="\033[1;31m: :' : \033[0m" @@ -43,14 +52,20 @@ panic() { printf "\n\n" printf " \033[1;37mBOOT FAILED!\033[0m\n" printf "\n" - printf " This Live System image failed to boot.\n\n" + printf " This image failed to boot.\n\n" + + printf " Please file a bug at your distributors bug tracking system, making\n" + printf " sure to note the exact version, name and distribution of the image\n" + printf " you were attempting to boot.\n\n" - printf " Please file a bug against the 'live-boot' package or email the Live Systems\n" - printf " mailing list at , making sure to note the\n" - printf " exact version, name and distribution of the image you were attempting to boot.\n\n" + if [ -r /etc/grml_version ] + then + GRML_VERSION="$(cat /etc/grml_version)" + printf " $GRML_VERSION\n\n" + fi printf " The file ${LIVELOG} contains some debugging information but booting with the\n" - printf " ${DEBUG} command-line parameter will greatly increase its verbosity which is\n" + printf " ${DEBUG}=1 command-line parameter will greatly increase its verbosity which is\n" printf " extremely useful when diagnosing issues.\n\n" if [ -n "${panic}" ]; then