From: robertmh Date: Sun, 17 Feb 2008 10:32:02 +0000 (+0000) Subject: 2008-02-17 Robert Millan X-Git-Tag: 1.98~1608 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32b0fc496be46e371e56128f74de23322bff08d8;p=thirdparty%2Fgrub.git 2008-02-17 Robert Millan * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(), set `first_start' to 0 for non-PC/MSDOS partition maps. --- diff --git a/ChangeLog b/ChangeLog index 8e9a768cd..ab7f80274 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-17 Robert Millan + + * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(), + set `first_start' to 0 for non-PC/MSDOS partition maps. + 2008-02-16 Robert Millan * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(), diff --git a/util/i386/pc/grub-setup.c b/util/i386/pc/grub-setup.c index c77cd0991..647d46e41 100644 --- a/util/i386/pc/grub-setup.c +++ b/util/i386/pc/grub-setup.c @@ -130,10 +130,9 @@ setup (const char *prefix, const char *dir, first_start = p->start; } else - { - if (first_start > p->start) - first_start = p->start; - } + /* In other partition maps, the region after MBR and before first + partition is not reserved (on GPT, it contains the primary header). */ + first_start = 0; return 0; }