When using gfxterm, and booting a kernel in this mode, Linux won't be able to
print anything to the console.  This patch fixes it so that terminal is set
back to normal console during deinitialisation.

Tested and known to work, although I'm not 1:1 sure if this is the right place
to do it.

-- 
Robert Millan

My spam trap is [EMAIL PROTECTED]  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
2007-05-03  Robert Millan  <[EMAIL PROTECTED]>

	* term/i386/pc/console.c (grub_console_fini): Call
	grub_term_set_current() before grub_term_unregister().

Index: term/i386/pc/console.c
===================================================================
RCS file: /sources/grub/grub2/term/i386/pc/console.c,v
retrieving revision 1.7
diff -u -r1.7 console.c
--- term/i386/pc/console.c	20 Aug 2005 05:26:51 -0000	1.7
+++ term/i386/pc/console.c	3 May 2007 18:42:08 -0000
@@ -148,5 +148,6 @@
 void
 grub_console_fini (void)
 {
+  grub_term_set_current (&grub_console_term);
   grub_term_unregister (&grub_console_term);
 }
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to