From 32b0fc496be46e371e56128f74de23322bff08d8 Mon Sep 17 00:00:00 2001 From: robertmh Date: Sun, 17 Feb 2008 10:32:02 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ util/i386/pc/grub-setup.c | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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; }