mirror of
https://github.com/limine-bootloader/limine
synced 2024-11-26 02:20:31 +03:00
host/limine: Mark protective MBR wrapper partition as active on GPT
This commit is contained in:
parent
9e1f66507e
commit
d41c5375d8
@ -824,6 +824,14 @@ static int bios_install(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
if (gpt) {
|
||||
if (!quiet) {
|
||||
fprintf(stderr, "Marking protective MBR wrapper partition as active...\n");
|
||||
}
|
||||
uint8_t hint8 = 0x80;
|
||||
device_write(&hint8, 446, sizeof(uint8_t));
|
||||
}
|
||||
|
||||
if (gpt == 0 && mbr == 0) {
|
||||
fprintf(stderr, "error: Could not determine if the device has a valid partition table.\n");
|
||||
fprintf(stderr, " Please ensure the device has a valid MBR or GPT.\n");
|
||||
|
Loading…
Reference in New Issue
Block a user