Generating grub.cfg ...<br><br># Do this as early as possible, since other commands might depend on it.<br># (e.g. the `loadfont' command might need lvm or raid modules)<br>for i in ${GRUB_PRELOAD_MODULES} ; do<br> echo "insmod $i"<br>
done<br><br>if [ "x${GRUB_DEFAULT}" = "x" ] ; then GRUB_DEFAULT=0 ; fi<br>+ '[' x0 = x ']'<br>if [ "x${GRUB_TIMEOUT}" = "x" ] ; then GRUB_TIMEOUT=5 ; fi<br>+ '[' x5 = x ']'<br>
if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=640x480 ; fi<br>+ '[' x = x ']'<br>+ GRUB_GFXMODE=640x480<br><br>cat << EOF<br>set default=${GRUB_DEFAULT}<br>set timeout=${GRUB_TIMEOUT}<br>
EOF<br>+ cat<br><br>case ${GRUB_TERMINAL_INPUT}:${GRUB_TERMINAL_OUTPUT} in<br> serial:* | *:serial)<br> if ! test -e ${grub_prefix}/serial.mod ; then<br> echo "Serial terminal not available on this platform." >&2 ; exit 1<br>
fi<br><br> if [ "x${GRUB_SERIAL_COMMAND}" = "x" ] ; then<br> grub_warn "Requested serial terminal but GRUB_SERIAL_COMMAND is unspecified. Default parameters will be used."<br> GRUB_SERIAL_COMMAND=serial<br>
fi<br> echo "${GRUB_SERIAL_COMMAND}"<br> ;;<br>esac<br>+ case ${GRUB_TERMINAL_INPUT}:${GRUB_TERMINAL_OUTPUT} in<br>+ test -e /boot/grub/serial.mod<br>+ '[' 'xserial --unit=0 --speed=115200' = x ']'<br>
+ echo 'serial --unit=0 --speed=115200'<br><br>case x${GRUB_TERMINAL_INPUT} in<br> x)<br> # Just use the native terminal<br> ;;<br> x*)<br> cat << EOF<br>if terminal_input ${GRUB_TERMINAL_INPUT} ; then true ; else<br>
# For backward compatibility with versions of terminal.mod that don't<br> # understand terminal_input<br> terminal ${GRUB_TERMINAL_INPUT}<br>fi<br>EOF<br> ;;<br>esac<br>+ case x${GRUB_TERMINAL_INPUT} in<br><br>case x${GRUB_TERMINAL_OUTPUT} in<br>
xgfxterm)<br> # Make the font accessible<br> prepare_grub_to_access_device `${grub_probe} --target=device ${GRUB_FONT_PATH}`<br><br> # Pick a video backend<br> video_backend=<br> for i in vbe ; do<br> if test -e ${grub_prefix}/$i.mod ; then<br>
video_backend=$i<br> break<br> fi<br> done<br> if ! [ "${video_backend}" ] ; then<br> echo "No suitable backend could be found for gfxterm." >&2 ; exit 1<br> fi<br>
<br> cat << EOF<br>if loadfont `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then<br> set gfxmode=${GRUB_GFXMODE}<br> insmod gfxterm<br> insmod ${video_backend}<br> if terminal_output gfxterm ; then true ; else<br>
# For backward compatibility with versions of terminal.mod that don't<br> # understand terminal_output<br> terminal gfxterm<br> fi<br>fi<br>EOF<br> ;;<br> x)<br> # Just use the native terminal<br> ;;<br>
x*)<br> cat << EOF<br>if terminal_output ${GRUB_TERMINAL_OUTPUT} ; then true ; else<br> # For backward compatibility with versions of terminal.mod that don't<br> # understand terminal_output<br> terminal ${GRUB_TERMINAL_OUTPUT}<br>
fi<br>EOF<br> ;;<br>esac<br>+ case x${GRUB_TERMINAL_OUTPUT} in<br>+ cat<br>Found linux image: /boot/vmlinuz-2.6.29-2-686<br>Found initrd image: /boot/initrd.img-2.6.29-2-686<br>Found linux image: /boot/vmlinuz-2.6.29-1-686<br>
Found initrd image: /boot/initrd.img-2.6.29-1-686<br>done<br><br>