Blame SOURCES/0066-ieee1275-check-for-IBM-pseries-emulated-machine.patch

f725e3
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f725e3
From: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
f725e3
Date: Thu, 20 Mar 2014 16:57:12 +0530
f725e3
Subject: [PATCH] ieee1275: check for IBM pseries emulated machine
f725e3
f725e3
is_qemu is not being set lead to disabling of feature like
f725e3
GRUB_IEEE1275_FLAG_HAS_CURSORONOFF. This resulted in cursor not being
f725e3
displayed during the grub-menu edit.
f725e3
f725e3
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
f725e3
---
f725e3
 grub-core/kern/ieee1275/cmain.c | 4 +++-
f725e3
 1 file changed, 3 insertions(+), 1 deletion(-)
f725e3
f725e3
diff --git a/grub-core/kern/ieee1275/cmain.c b/grub-core/kern/ieee1275/cmain.c
f725e3
index d92ae14f53e..3e12e6b24e1 100644
f725e3
--- a/grub-core/kern/ieee1275/cmain.c
f725e3
+++ b/grub-core/kern/ieee1275/cmain.c
f725e3
@@ -84,8 +84,10 @@ grub_ieee1275_find_options (void)
f725e3
 
f725e3
   rc = grub_ieee1275_get_property (root, "model",
f725e3
 				   tmp,	sizeof (tmp), 0);
f725e3
-  if (rc >= 0 && !grub_strcmp (tmp, "Emulated PC"))
f725e3
+  if (rc >= 0 && (!grub_strcmp (tmp, "Emulated PC")
f725e3
+		  || !grub_strcmp (tmp, "IBM pSeries (emulated by qemu)"))) {
f725e3
     is_qemu = 1;
f725e3
+  }
f725e3
 
f725e3
   if (rc >= 0 && grub_strncmp (tmp, "IBM", 3) == 0)
f725e3
     grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS);