6 # Override log_*_msg until #494257 is merged
10 if [ "$quiet" = "y" ]; then return; fi
16 _log_msg "Success: $@\n"
21 _log_msg "Failure: $@\n"
26 _log_msg "Warning: $@\n"
31 if [ -x /sbin/usplash_write ]; then
32 /sbin/usplash_write "TEXT $@"
34 _log_msg "Begin: $@ ... "
39 if [ -x /sbin/usplash_write ]; then
40 /sbin/usplash_write "SUCCESS ok"
49 # Print a message and wait for enter
50 if [ -x /sbin/usplash_write ]
52 /sbin/usplash_write "INPUTENTER ${@}"
53 read nunya < /dev/.initramfs/usplash_outfifo
56 _log_msg "Waiting: ${@} ... \n"
62 VALUE="$(eval echo -n \${$STRING})"
64 if [ -f /live.vars ] && cat /live.vars | grep -sq "export ${STRING}"
66 sed -i -e 's/\('${STRING}'=\).*$/\1'${VALUE}'/' /live.vars
68 echo "export ${STRING}=\"${VALUE}\"" >> /live.vars
71 eval export "${STRING}"="${VALUE}"
76 if [ "$1" != "C" ]; then
77 # Match the language code with 3rd field in languagelist
78 line=$(grep -v "^#" /root/usr/share/live-initramfs/languagelist | cut -f3,4,5 -d\; | grep -v ';C$' | grep "^$langpart;")
79 if [ -n "$line" ]; then
80 if [ "$(echo "$line" | grep -c '')" -gt 1 ]; then
81 # More than one match; try matching the
84 if [ "$countrypart" = "$1" ]; then
85 countryline="$(echo "$line" | head -n1)"
86 echo "${countryline##*;}"
89 countrypart="${countrypart%%[@.]*}"
90 countryline="$(echo "$line" | grep ";$countrypart;" | head -n1 || true)"
91 if [ "$countryline" ]; then
92 echo "${countryline##*;}"
103 # Override panic from scripts/functions
106 DEB_1="\033[1;31m .''\`. \033[0m"
107 DEB_2="\033[1;31m: :' : \033[0m"
108 DEB_3="\033[1;31m\`. \`'\` \033[0m"
109 DEB_4="\033[1;31m \`- \033[0m"
111 LIVELOG="\033[1;37m/live.log\033[0m"
112 DEBUG="\033[1;37mdebug\033[0m"
114 # Reset redirections to avoid buffering
121 printf " ${DEB_2} \033[1;37mBOOT FAILED !!!\033[0m\n"
123 printf " ${DEB_4} This Debian Live image failed to boot.\n\n"
125 printf " Please file a bug against the 'live-initramfs' package or email the Debian\n"
126 printf " Live mailing list at <debian-live-devel@lists.alioth.debian.org>, making\n"
127 printf " sure to note the exact version, name and distribution of the image you were\n"
128 printf " attempting to boot.\n\n"
130 printf " The file ${LIVELOG} contains some debugging information but booting with the\n"
131 printf " ${DEBUG} command-line parameter will greatly increase its verbosity which is\n"
132 printf " extremely useful when diagnosing issues.\n\n"
134 if [ -n "${panic}" ]; then
135 printf " live-initramfs will now restart your system. "
137 printf " live-initramfs will now start a shell. "
139 printf "The error message was:\n\n "
141 # Call original panic