2007-05-09 Robert Millan <rmh@aybabtu.com>
* util/i386/pc/grub-probe.c (probe): When detecting partition map, fail gracefuly if dev->disk->partition == NULL.
This commit is contained in:
parent
75f396ccfa
commit
02e7b75ee8
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-05-09 Robert Millan <rmh@aybabtu.com>
|
||||
|
||||
* util/i386/pc/grub-probe.c (probe): When detecting partition map,
|
||||
fail gracefuly if dev->disk->partition == NULL.
|
||||
|
||||
2007-05-07 Robert Millan <rmh@aybabtu.com>
|
||||
|
||||
* util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
|
||||
|
|
|
@ -126,6 +126,9 @@ probe (const char *path)
|
|||
|
||||
if (print == PRINT_PARTMAP)
|
||||
{
|
||||
if (dev->disk->partition == NULL)
|
||||
grub_util_error ("Cannot detect partition map for %s", drive_name);
|
||||
|
||||
if (strcmp (dev->disk->partition->partmap->name, "amiga_partition_map") == 0)
|
||||
printf ("amiga\n");
|
||||
else if (strcmp (dev->disk->partition->partmap->name, "apple_partition_map") == 0)
|
||||
|
|
Loading…
Reference in a new issue