On Tue, 2009-07-07 at 10:08 +0200, Yves BLUSSEAU wrote:
Hi,
there is a "bug" in boot.img: if you install the boot.img into the
volume boot sector of a FAT32 partition instead of MBR (i know it's a
bad idea), you "destroyed" the partition (even grub will not recognize it).
I think a much bigger issue is that installing on FAT32 it was allowed
at all! I assume that even with your patch, installing the GRUB
bootsector into some filesystems would still break them. We need a
check that the bootsector is compatible with the filesystem.
Are you agree to add this checks in grub-setup ? If yes i can do it.
* change the string of hd_probe_error_string from "Hard Drive" to "HD"
because i needed 2 extras bytes and do not want to change the working
code of the boot.
It means the code is very tight. We would not able to add any
workarounds or features in the future.
When is the ability to install on FAT32 important? If it's just a way
to fix a missing check in grub-setup, then I'll rather have some extra
space.
The same boot.S has a hole for the partition table. I think we should
need either one hole or another. That would allow us to have two
versions of boot.img, one for FAT bootsector and another for MBR.
I agree with you. Do you want me to do that ?