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