* grub-core/term/at_keyboard.c: Tolerate missing keyboard.

This commit is contained in:
Vladimir Serbinenko 2014-01-26 03:31:10 +01:00
parent 35f2d96c0d
commit 7f64fb590c
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/term/at_keyboard.c: Tolerate missing keyboard.
2014-01-26 Mike Gilbert <floppym@gentoo.org>
grub-install: support for partitioned partx loop devices.

View file

@ -396,6 +396,9 @@ fetch_key (int *is_break)
if (! KEYBOARD_ISREADY (grub_inb (KEYBOARD_REG_STATUS)))
return -1;
at_key = grub_inb (KEYBOARD_REG_DATA);
/* May happen if no keyboard is connected. Just ignore this. */
if (at_key == 0xff)
return -1;
if (at_key == 0xe0)
{
e0_received = 1;