-
Notifications
You must be signed in to change notification settings - Fork 11
/
boot_failure_message_grml.patch
38 lines (33 loc) · 1.66 KB
/
boot_failure_message_grml.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#! /bin/sh /usr/share/dpatch/dpatch-run
## 05_boot_failure_message_grml.dpatch by <mika@grml.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Copy /etc/grml_version to initrd
@DPATCH@
Index: live-boot-grml/components/9990-initramfs-tools.sh
===================================================================
--- live-boot-grml.orig/components/9990-initramfs-tools.sh 2014-03-08 13:20:10.746978063 +0100
+++ live-boot-grml/components/9990-initramfs-tools.sh 2014-03-08 13:20:10.742978533 +0100
@@ -52,14 +52,20 @@
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 against the 'live-boot' package or email the Live Systems\n"
- printf " mailing list at <debian-live@lists.debian.org>, making sure to note the\n"
- printf " exact version, name and distribution of the image you were attempting 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"
+
+ 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