Fix patch offsets for quilt patches
[live-boot-grml.git] / debian / patches / 05_boot_failure_message_grml.patch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 05_boot_failure_message_grml.dpatch by  <mika@grml.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Copy /etc/grml_version to initrd
6
7 @DPATCH@
8
9 --- a/scripts/live-functions
10 +++ b/scripts/live-functions
11 @@ -88,14 +88,20 @@
12         printf "     ${DEB_1}\n"
13         printf "     ${DEB_2}  \033[1;37mBOOT FAILED!\033[0m\n"
14         printf "     ${DEB_3}\n"
15 -       printf "     ${DEB_4}  This Debian Live image failed to boot.\n\n"
16 +       printf "     ${DEB_4}  This image failed to boot.\n\n"
17  
18 -       printf "  Please file a bug against the 'live-boot' package or email the Debian\n"
19 -       printf "  Live mailing list at <debian-live@lists.debian.org>, making sure to note the\n"
20 -       printf "  exact version, name and distribution of the image you were attempting to boot.\n\n"
21 +       printf "  Please file a bug at your distributors bug tracking system, making\n"
22 +       printf "  sure to note the exact version, name and distribution of the image\n"
23 +       printf "  you were attempting to boot.\n\n"
24 +
25 +       if [ -r /etc/grml_version ]
26 +       then
27 +               GRML_VERSION="$(cat /etc/grml_version)"
28 +               printf "  $GRML_VERSION\n\n"
29 +       fi
30  
31         printf "  The file ${LIVELOG} contains some debugging information but booting with the\n"
32 -       printf "  ${DEBUG} command-line parameter will greatly increase its verbosity which is\n"
33 +       printf "  ${DEBUG}=1 command-line parameter will greatly increase its verbosity which is\n"
34         printf "  extremely useful when diagnosing issues.\n\n"
35  
36         if [ -n "${panic}" ]; then