2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
* util/i386/pc/grub-setup.c (setup): Don't install on non-GPT, non-MSDOS paritions.
This commit is contained in:
parent
e0a6ca52f2
commit
de15bf8e7f
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
|
||||||
|
non-MSDOS paritions.
|
||||||
|
|
||||||
2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
|
2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* include/grub/types.h (UNUSED): Removed since it conflicts with
|
* include/grub/types.h (UNUSED): Removed since it conflicts with
|
||||||
|
|
|
@ -356,8 +356,12 @@ setup (const char *dir,
|
||||||
goto unable_to_embed;
|
goto unable_to_embed;
|
||||||
}
|
}
|
||||||
|
|
||||||
grub_partition_iterate (dest_dev->disk, (strcmp (dest_partmap, "part_msdos") ?
|
if (strcmp (dest_partmap, "part_msdos") == 0)
|
||||||
find_usable_region_gpt : find_usable_region_msdos));
|
grub_partition_iterate (dest_dev->disk, find_usable_region_msdos);
|
||||||
|
else if (strcmp (dest_partmap, "part_gpt") == 0)
|
||||||
|
grub_partition_iterate (dest_dev->disk, find_usable_region_gpt);
|
||||||
|
else
|
||||||
|
grub_util_error (_("No DOS-style partitions found"));
|
||||||
|
|
||||||
if (embed_region.end == embed_region.start)
|
if (embed_region.end == embed_region.start)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue