Comment 46 for bug 1237519

Revision history for this message
Colin Watson (cjwatson) wrote :

Brandon: The point about hd_geometry.start being unsigned long is one I hadn't noticed, and is indeed relevant!

I didn't actually see your mail until after I'd written a patch for this. As it happens, GRUB 0.97 is sufficiently different from GRUB 2 that it's generally easier to just do things from scratch. If I'm reading the Fedora patch set correctly, it looks like they're doing something very complex involving reading the geometry directly out of the partition table; I think using the sysfs attribute should work just as well and be a lot more maintainable. I've posted my patch upstream for review, although it hasn't yet appeared in the grub-devel web archives.