ieee1275: check for IBM pseries emulated machine
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.
Signed-off-by Nikunj A Dadhania <[email protected]>
--- grub-core/kern/ieee1275/cmain.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
grub-core/kern/ieee1275/cmain.c +3 -1
@@ -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
Quoted 3 lines · Nikunj A Dadhania
is_qemuis not being set lead to disabling of feature likeGRUB_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]]