5 # we definitely want this stuff visible
13 printf "Warning: $@\n"
18 # Print a message and wait for enter
19 if [ -x /bin/plymouth ] && plymouth --ping
21 plymouth message --text="$@"
22 plymouth watch-keystroke | read nunya
25 _log_msg "Waiting: ${@} ... \n"
28 # Override maybe_break from scripts/functions
31 if [ "${break}" = "$1" ]; then
34 panic "Spawning shell within the initramfs"
38 # Override panic from scripts/functions
41 for _PARAMETER in ${LIVE_BOOT_CMDLINE}
43 case "${_PARAMETER}" in
45 panic="${_PARAMETER#*panic=}"
50 DEB_1="\033[1;31m .''\`. \033[0m"
51 DEB_2="\033[1;31m: :' : \033[0m"
52 DEB_3="\033[1;31m\`. \`'\` \033[0m"
53 DEB_4="\033[1;31m \`- \033[0m"
55 LIVELOG="\033[1;37m/boot.log\033[0m"
56 DEBUG="\033[1;37mdebug\033[0m"
58 # Reset redirections to avoid buffering
64 printf " \033[1;37mBOOT FAILED!\033[0m\n"
66 printf " This image failed to boot.\n\n"
68 printf " Please file a bug at your distributors bug tracking system, making\n"
69 printf " sure to note the exact version, name and distribution of the image\n"
70 printf " you were attempting to boot.\n\n"
72 if [ -r /etc/grml_version ]
74 GRML_VERSION="$(cat /etc/grml_version)"
75 printf " $GRML_VERSION\n\n"
78 printf " The file ${LIVELOG} contains some debugging information but booting with the\n"
79 printf " ${DEBUG}=1 command-line parameter will greatly increase its verbosity which is\n"
80 printf " extremely useful when diagnosing issues.\n\n"
82 if [ -n "${panic}" ]; then
83 printf " live-boot will now restart your system. "
85 printf " live-boot will now start a shell. "
87 printf "The error message was:\n\n "