2008-05-28 Robert Millan <rmh@aybabtu.com>
* util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC devices. * util/grub-mkdevicemap.c (get_mmc_disk_name) (make_device_map): Likewise.
This commit is contained in:
parent
887d2619bf
commit
23023641b8
3 changed files with 46 additions and 1 deletions
|
@ -296,6 +296,12 @@ get_cciss_disk_name (char *name, int controller, int drive)
|
|||
sprintf (name, "/dev/cciss/c%dd%d", controller, drive);
|
||||
}
|
||||
|
||||
static void
|
||||
get_mmc_disk_name (char *name, int unit)
|
||||
{
|
||||
sprintf (name, "/dev/mmcblk%d", unit);
|
||||
}
|
||||
|
||||
static void
|
||||
get_xvd_disk_name (char *name, int unit)
|
||||
{
|
||||
|
@ -598,6 +604,22 @@ make_device_map (const char *device_map, int floppy_disks)
|
|||
}
|
||||
}
|
||||
|
||||
/* MultiMediaCard (MMC). */
|
||||
for (i = 0; i < 10; i++)
|
||||
{
|
||||
char name[16];
|
||||
|
||||
get_mmc_disk_name (name, i);
|
||||
if (check_device (name))
|
||||
{
|
||||
char *p;
|
||||
p = grub_util_get_disk_name (num_hd, name);
|
||||
fprintf (fp, "(%s)\t%s\n", p, name);
|
||||
free (p);
|
||||
num_hd++;
|
||||
}
|
||||
}
|
||||
|
||||
finish:
|
||||
#endif /* __linux__ */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue