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