restore support for old persistence media
[live-boot-grml.git] / debian / patches / grml-specific / 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 Index: live-boot-grml/components/9990-initramfs-tools.sh
10 ===================================================================
11 --- live-boot-grml.orig/components/9990-initramfs-tools.sh      2014-03-08 13:20:10.746978063 +0100
12 +++ live-boot-grml/components/9990-initramfs-tools.sh   2014-03-08 13:20:10.742978533 +0100
13 @@ -52,14 +52,20 @@
14         printf "\n\n"
15         printf "  \033[1;37mBOOT FAILED!\033[0m\n"
16         printf "\n"
17 -       printf "  This Live System image failed to boot.\n\n"
18 +       printf "  This image failed to boot.\n\n"
19  
20 -       printf "  Please file a bug against the 'live-boot' package or email the Live Systems\n"
21 -       printf "  mailing list at <debian-live@lists.debian.org>, making sure to note the\n"
22 -       printf "  exact version, name and distribution of the image you were attempting to boot.\n\n"
23 +       printf "  Please file a bug at your distributors bug tracking system, making\n"
24 +       printf "  sure to note the exact version, name and distribution of the image\n"
25 +       printf "  you were attempting to boot.\n\n"
26 +
27 +       if [ -r /etc/grml_version ]
28 +       then
29 +               GRML_VERSION="$(cat /etc/grml_version)"
30 +               printf "  $GRML_VERSION\n\n"
31 +       fi
32  
33         printf "  The file ${LIVELOG} contains some debugging information but booting with the\n"
34 -       printf "  ${DEBUG} command-line parameter will greatly increase its verbosity which is\n"
35 +       printf "  ${DEBUG}=1 command-line parameter will greatly increase its verbosity which is\n"
36         printf "  extremely useful when diagnosing issues.\n\n"
37  
38         if [ -n "${panic}" ]; then