With patch applied:<br><br>Generating grub.cfg ...<br><br># Do this as early as possible, since other commands might depend on it.<br># (e.g. the `loadfont&#39; command might need lvm or raid modules)<br>for i in ${GRUB_PRELOAD_MODULES} ; do<br>
  echo &quot;insmod $i&quot;<br>done<br><br>if [ &quot;x${GRUB_DEFAULT}&quot; = &quot;x&quot; ] ; then GRUB_DEFAULT=0 ; fi<br>+ &#39;[&#39; x0 = x &#39;]&#39;<br>if [ &quot;x${GRUB_TIMEOUT}&quot; = &quot;x&quot; ] ; then GRUB_TIMEOUT=5 ; fi<br>
+ &#39;[&#39; x5 = x &#39;]&#39;<br>if [ &quot;x${GRUB_GFXMODE}&quot; = &quot;x&quot; ] ; then GRUB_GFXMODE=640x480 ; fi<br>+ &#39;[&#39; x = x &#39;]&#39;<br>+ GRUB_GFXMODE=640x480<br><br>cat &lt;&lt; EOF<br>set default=${GRUB_DEFAULT}<br>
set timeout=${GRUB_TIMEOUT}<br>EOF<br>+ cat<br><br>[ -z &quot;${GRUB_TERMINAL_INPUT}&quot; ] &amp;&amp; GRUB_TERMINAL_INPUT=${GRUB_TERMINAL_OUTPUT}<br>+ &#39;[&#39; -z &#39;&#39; &#39;]&#39;<br>+ GRUB_TERMINAL_INPUT=serial<br>
<br>case ${GRUB_TERMINAL_INPUT}:${GRUB_TERMINAL_OUTPUT} in<br>  serial:* | *:serial)<br>    if ! test -e ${grub_prefix}/serial.mod ; then<br>      echo &quot;Serial terminal not available on this platform.&quot; &gt;&amp;2 ; exit 1<br>
    fi<br><br>    if [ &quot;x${GRUB_SERIAL_COMMAND}&quot; = &quot;x&quot; ] ; then<br>      grub_warn &quot;Requested serial terminal but GRUB_SERIAL_COMMAND is unspecified. Default parameters will be used.&quot;<br>      GRUB_SERIAL_COMMAND=serial<br>
    fi<br>    echo &quot;${GRUB_SERIAL_COMMAND}&quot;<br>  ;;<br>esac<br>+ case ${GRUB_TERMINAL_INPUT}:${GRUB_TERMINAL_OUTPUT} in<br>+ test -e /boot/grub/serial.mod<br>+ &#39;[&#39; &#39;xserial --unit=0 --speed=115200&#39; = x &#39;]&#39;<br>
+ echo &#39;serial --unit=0 --speed=115200&#39;<br><br>case x${GRUB_TERMINAL_INPUT} in<br>  x)<br>    # Just use the native terminal<br>  ;;<br>  x*)<br>    cat &lt;&lt; EOF<br>if terminal_input ${GRUB_TERMINAL_INPUT} ; then true ; else<br>
  # For backward compatibility with versions of terminal.mod that don&#39;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>+ cat<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 ! [ &quot;${video_backend}&quot; ] ; then<br>      echo &quot;No suitable backend could be found for gfxterm.&quot; &gt;&amp;2 ; exit 1<br>
    fi<br><br>    cat &lt;&lt; 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&#39;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 &lt;&lt; EOF<br>if terminal_output ${GRUB_TERMINAL_OUTPUT} ; then true ; else<br>  # For backward compatibility with versions of terminal.mod that don&#39;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><br># Do this as early as possible, since other commands might depend on it.<br># (e.g. the `loadfont&#39; command might need lvm or raid modules)<br>
for i in ${GRUB_PRELOAD_MODULES} ; do<br>  echo &quot;insmod $i&quot;<br>done<br><br>if [ &quot;x${GRUB_DEFAULT}&quot; = &quot;x&quot; ] ; then GRUB_DEFAULT=0 ; fi<br>+ &#39;[&#39; x0 = x &#39;]&#39;<br>if [ &quot;x${GRUB_TIMEOUT}&quot; = &quot;x&quot; ] ; then GRUB_TIMEOUT=5 ; fi<br>
+ &#39;[&#39; x5 = x &#39;]&#39;<br>if [ &quot;x${GRUB_GFXMODE}&quot; = &quot;x&quot; ] ; then GRUB_GFXMODE=640x480 ; fi<br>+ &#39;[&#39; x = x &#39;]&#39;<br>+ GRUB_GFXMODE=640x480<br><br>cat &lt;&lt; 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 &quot;Serial terminal not available on this platform.&quot; &gt;&amp;2 ; exit 1<br>
    fi<br><br>    if [ &quot;x${GRUB_SERIAL_COMMAND}&quot; = &quot;x&quot; ] ; then<br>      grub_warn &quot;Requested serial terminal but GRUB_SERIAL_COMMAND is unspecified. Default parameters will be used.&quot;<br>      GRUB_SERIAL_COMMAND=serial<br>
    fi<br>    echo &quot;${GRUB_SERIAL_COMMAND}&quot;<br>  ;;<br>esac<br>+ case ${GRUB_TERMINAL_INPUT}:${GRUB_TERMINAL_OUTPUT} in<br>+ test -e /boot/grub/serial.mod<br>+ &#39;[&#39; &#39;xserial --unit=0 --speed=115200&#39; = x &#39;]&#39;<br>
+ echo &#39;serial --unit=0 --speed=115200&#39;<br><br>case x${GRUB_TERMINAL_INPUT} in<br>  x)<br>    # Just use the native terminal<br>  ;;<br>  x*)<br>    cat &lt;&lt; EOF<br>if terminal_input ${GRUB_TERMINAL_INPUT} ; then true ; else<br>
  # For backward compatibility with versions of terminal.mod that don&#39;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 ! [ &quot;${video_backend}&quot; ] ; then<br>      echo &quot;No suitable backend could be found for gfxterm.&quot; &gt;&amp;2 ; exit 1<br>    fi<br>
<br>    cat &lt;&lt; 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&#39;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 &lt;&lt; EOF<br>if terminal_output ${GRUB_TERMINAL_OUTPUT} ; then true ; else<br>  # For backward compatibility with versions of terminal.mod that don&#39;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>