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

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