From 4fa5c227e5ec0dab934c5895da9d2f172593ad60 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 28 Jun 2016 09:43:13 +0200 Subject: [PATCH 1/1] components/9990-initramfs-tools.sh: drop unused functions, mention /proc/cmdline in failure message --- components/9990-initramfs-tools.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/components/9990-initramfs-tools.sh b/components/9990-initramfs-tools.sh index cdb00db..4323211 100755 --- a/components/9990-initramfs-tools.sh +++ b/components/9990-initramfs-tools.sh @@ -2,17 +2,6 @@ #set -e -# we definitely want this stuff visible -log_failure_msg() -{ - printf "Failure: $@\n" -} - -log_warning_msg() -{ - printf "Warning: $@\n" -} - log_wait_msg () { # Print a message and wait for enter @@ -67,10 +56,9 @@ panic() 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 " you were attempting to boot, as well as the content of /proc/cmdline.\n\n" - if [ -r /etc/grml_version ] - then + if [ -r /etc/grml_version ]; then GRML_VERSION="$(cat /etc/grml_version)" printf " $GRML_VERSION\n\n" fi -- 2.1.4