c920102f470ef3cf12b8ac3db6b6538efe6cb0e5
[live-boot-grml.git] / debian / patches / 13_always_display_warnings_and_failures.patch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 13_always_display_warnings_and_failures.dpatch by Michael Prokop <mika@grml.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Always display failure and warning messages.
6
7 @DPATCH@
8 Index: live-boot-grml/components/9990-initramfs-tools.sh
9 ===================================================================
10 --- live-boot-grml.orig/components/9990-initramfs-tools.sh      2014-03-08 13:26:25.866978105 +0100
11 +++ live-boot-grml/components/9990-initramfs-tools.sh   2014-03-08 13:26:25.862978575 +0100
12 @@ -2,6 +2,17 @@
13  
14  #set -e
15  
16 +# we definitely want this stuff visible
17 +log_failure_msg()
18 +{
19 +        printf "Failure: $@\n"
20 +}
21 +
22 +log_warning_msg()
23 +{
24 +        printf "Warning: $@\n"
25 +}
26 +
27  log_wait_msg ()
28  {
29         # Print a message and wait for enter