[Bug 194359] bsdinstall should set active flag in GPT PMBR if not booting using EFI

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Oct 15 20:01:55 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194359

--- Comment #11 from Marcel Moolenaar <marcel at FreeBSD.org> ---
(In reply to Ed Maste from comment #9)
> > If the installer knows what the firmware is ((I don't know if we pass anything from the loader to the kernel))
> 
> We report if the system was booted by BIOS or UEFI via the
> machdep.bootmethod sysctl (returns BIOS or UEFI).
> 
> I think this won't help though, because it returns BIOS for both the legacy
> BIOS case and the UEFI CSM (i.e. simulated BIOS) case, and based on the
> discussion here it seems (some) real BIOS needs the PMBR active flag set
> while CSM needs it unset.

I guess that means we need to be able to distinguish between true BIOS and UEFI
CSM. There seems to be some code for that:

http://kernel.ubuntu.com/git?p=cking/debug-code/.git;a=commit;h=2e654e01bf4014b27387cf64bb03316064478eea

I have no idea how well this works or if this is at all a legit way to do that.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list