Skip to contentSkip to conversation

ieee1275: check for IBM pseries emulated machine

PATCH In review Nikunj A Dadhania 2 participants 2 messages Mar 20, 2014 – Mar 24, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ieee1275: check for IBM pseries emulated machine

is_qemu is not being set lead to disabling of feature like GRUB_IEEE1275_FLAG_HAS_CURSORONOFF. This resulted in cursor not being displayed during the grub-menu edit.

---
 grub-core/kern/ieee1275/cmain.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
grub-core/kern/ieee1275/cmain.c +3 -1
index d92ae14..3e12e6b 100644
@@ -84,8 +84,10 @@ grub_ieee1275_find_options (void)
 
   rc = grub_ieee1275_get_property (root, "model",
 				   tmp,	sizeof (tmp), 0);
-  if (rc >= 0 && !grub_strcmp (tmp, "Emulated PC"))
+  if (rc >= 0 && (!grub_strcmp (tmp, "Emulated PC")
+		  || !grub_strcmp (tmp, "IBM pSeries (emulated by qemu)"))) {
     is_qemu = 1;
+  }
 
   if (rc >= 0 && grub_strncmp (tmp, "IBM", 3) == 0)
     grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS);
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 3 lines · Nikunj A Dadhania

is_qemu is not being set lead to disabling of feature like GRUB_IEEE1275_FLAG_HAS_CURSORONOFF. This resulted in cursor not being displayed during the grub-menu edit.

Looks reasonable, thanks. Pushed.

Signature · 1 line
Colin Watson                                       [[email protected]]