On 1/19/09 10:55 AM, Jeremy Katz wrote:
On Saturday, January 17 2009, Stewart Adam said:
> There's been some good progress - I sent a few messages to the syslinux
> mailing lists and hpa plans on fixing the GPT MBR in the near future, so
> we have that part of the problem covered. For now, I guess we can just
> comment out the "if" that chooses between mbr.bin or gptmbr.bin so that
> the USB key would be only EFI or only MBR compatible until this is
Given that we didn't previously copy over an MBR for the mactel case,
leaving the 'if' doesn't really seem to hurt anything. I get to EFI
grub with the gptmbr.bin present and then when it's fixed, maybe things
will magically just start to work. So based on that, I think I'm going
to push what you had to git and then we can have it more easily testable
- syslinux's gptmbr.bin is working fine. I was using the partition
type UUID, not its unique UUID. With this correction, things work fine when
booting with BIOS or EFI!
I've attached a patch which re-adds the check for gptmbr.bin and if it's
found, then the script will now automatically grab the partition's unique
UUID and write a compatible MBR. It should work on all drives with an LBA
size of 512 bytes.
The patch also includes a minor fix: If --format is specified and the user
has accepted the first warning by hitting <enter>, then it will
automatically unmount all partitions on the device so that the parted
commands don't fail.