2010/5/23 Grégoire Sutre <gregoire.su...@gmail.com>: > On 05/19/2010 09:20 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > > [snip] > - delta = grub_partition_get_start (disk->partition); > + delta = grub_le_to_cpu32 (whole_disk_be.offset); > > As dicsussed on irc, this makes the delta completely dependent on the > c: entry of the disklabel, which could be bogus.
(...) > What we want here is to diverge from that code when the disklabel > offsets are relative. I believe that testing whether c: has a null > offset gives the answer. I changed Vladimir's second patch to do that. With bsdlabel_v3.diff, and the image I've posted here, I get dropped into grub_rescue. This breaks Vladimir's second patch on FreeBSD. :-( -cpghost. -- Cordula's Web. http://www.cordula.ws/ _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel