Re: MBR partition parsing
Posted: Sat Sep 30, 2017 7:48 am
Hi,
Cheers,
Brendan
Let's define "boot manager goals":Antti wrote:After a short brainstorming session, I'm not sure would I "get over" the inelegancy of the tight coupling of MBR & GPT and the need to have "overlapping" partitions. Let alone the fact that third-party partition software may break this. Currently there are two options (not mutually exclusive, both of these can be provided) on the table:Antti wrote:Now the implementation is "on hold" until a good compromise is found.
Both of the these conform to the specification to the letter. The latter felt impossible but maybe it is not. It may ignore legacy partitions (and CHS altogether) and put all effort into finding a bootable partition from GPT. Please note that I'm not claiming that this is the best option. Just thinking aloud...
- Stub code in the MBR that prints "Error: only UEFI booting supported."
- Full code in the MBR that understands GPT.
- To allow multiple OSs to be installed (e.g. including a "which OS would you like to boot" menu), where some of the OSs that could be installed are legacy OSs that don't support/understand GPT
- To be firmware independent (allow the same device to be booted regardless of whether the firmware is BIOS or UEFI). Note: assume the boot menu lists all OSs installed; where OSs that require UEFI can't be selected if the firmware is BIOS, OSs that require BIOS can't be selected if the firmware is UEFI, and firmware independent OSs can always be selected
- Provide management tools (for testing, diagnostics, boot configuration, etc) that can be used when no OS is installed at all, including tools to manage partitions (create, delete, backup, restore)
Cheers,
Brendan