grub-emu ls command does not list any partitions.
Device scan in grub_disk_open() stops early because grub_host_open()
returns success on all device names.
Christian
2007-10-25 Christian Franke <[EMAIL PROTECTED]>
* disk/host.c (grub_host_open): Add check for "host". This fixes
the problem that grub-emu does not find partitions.
--- grub2.orig/disk/host.c 2007-08-02 19:24:05.000000000 +0200
+++ grub2/disk/host.c 2007-10-13 15:11:18.000000000 +0200
@@ -34,8 +34,11 @@ grub_host_iterate (int (*hook) (const ch
}
static grub_err_t
-grub_host_open (const char *name __attribute((unused)), grub_disk_t disk)
+grub_host_open (const char *name, grub_disk_t disk)
{
+ if (grub_strcmp(name, "host"))
+ return grub_error (GRUB_ERR_UNKNOWN_DEVICE, "not a host disk");
+
disk->total_sectors = 0;
disk->id = (int) "host";
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel