Date: Wed, 15 Oct 2014 20:01:54 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 194359] bsdinstall should set active flag in GPT PMBR if not booting using EFI Message-ID: <bug-194359-8-T0FEAWr4vG@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-194359-8@https.bugs.freebsd.org/bugzilla/> References: <bug-194359-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194359 --- Comment #11 from Marcel Moolenaar <marcel@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194359-8-T0FEAWr4vG>