В Sat, 28 Mar 2015 13:36:01 -0600
Chris Murphy
On Sat, Mar 28, 2015 at 5:47 AM, Andrei Borzenkov
wrote: I tried to reproduce it (using QEMU with OVMF + Microsoft keys) but unfortunately Windows 2012 R2 preview image I downloaded fails to boot when secure boot is enabled.
It's possible to get a free Windows 8.1 Enterprise eval. It expires in 90 days from installation so it's useful for testing, and boots either BIOS or UEFI systems.
I have Windows 8 eval (how exactly should it be different from 2012?) and it does not boot with secure boot enabled either.
If you have Windows installation with working secure boot enabled, could you please send me \EFI\Windows archive?
I returned it a month ago, but I still have the EFI/ directory from the recovery media. It's a lot different than the EFI/ directory for an actual installation, but it still depends on Secure Boot so if that's useful let me know and I'll send that.
Yes, please, send it.
Grub includes grub-bless utility for OS X. I wonder, if this is exactly what is required.
Blessing is a function of HFS+, it won't work on FAT32.
I know that I had to bless (using OS X tools) grub in ESP to be able to select it for booting. So it apparently works. May be it stores metadata somewhere in HFS+, do not know.
Yeah and I already told you the os-prober folks don't care and have just short of abandoned os-prober. The Fedora packager can hardly get them to do anything at all, and this sounds way too major, not in their interest, and thus far not even something the Fedora packager is eager to fix separate from upstream.
Who owns 30_os-prober? GRUB or the os-prober folks?
it is part of grub. This makes sense - os-prober performs detection and 30_os-prober translates it into grub specific commands. This frees os-prober from dependencies on grub internals.
Because the bogus OS X boot entries are created by the 30_os-prober script.
Again - 30_os-prober just uses whatever os-prober returns. It does not itself detect anything. If os-prober says "use XNU loader", 30_os-prober will emit XNU loader.
Obviously if the system running grub-mkconfig is booted in EFI mode, it's completely wrong to produce a grub.cfg that uses xnu modules to try to boot OS X. Does os-prober determine whether the current system is booted in EFI vs with CSM?
No. You are welcome to implement it. It is /usr/lib/os-probes/mounted/20macosx. Not to mention that to rely on how current system where configuration file is being created was booted is wrong as well. Boot method should be detected at run time; but this will make resulting grub.cfg even less readable and more difficult to parse.
Or is that some other component?
Nothing.
I don't know exactly how each component works, all I can tell you is the boot entries both upstream and downstream GRUBs create on Macs these days are wrong. They don't work. And that's because usually Macs are now booting in EFI mode these days, not with the CSM.
I do not have OS X (and am not OS X expert in any case) to test and nobody offered help to fix it. Either in form of providing detailed explanation what should be done (which files to check for, which files to load) or at least to test modifications. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org