[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #46716] Protective MBR partition is not marked as bootable
From: |
Alexander E. Patrakov |
Subject: |
[bug #46716] Protective MBR partition is not marked as bootable |
Date: |
Sat, 19 Dec 2015 12:54:48 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 |
Follow-up Comment #2, bug #46716 (project grub):
OK, Tiano Core validates the protective partition as follows:
//
// Verify that the Protective MBR is valid
//
for (Index = 0; Index < MAX_MBR_PARTITIONS; Index++) {
if (ProtectiveMbr->Partition[Index].BootIndicator == 0x00 &&
ProtectiveMbr->Partition[Index].OSIndicator == PMBR_GPT_PARTITION &&
UNPACK_UINT32 (ProtectiveMbr->Partition[Index].StartingLBA) == 1
) {
break;
}
}
if (Index == MAX_MBR_PARTITIONS) {
goto Done; // i.e. not valid
}
So here is an alternative suggestion: don't mark the protective partition,
create another dummy MBR partition of type 0x00, mark it as bootable.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46716>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/