mirror of
https://github.com/limine-bootloader/limine
synced 2024-11-29 20:03:19 +03:00
limine-install: Also zero out secondary GPT header
This commit is contained in:
parent
2e12cc0a40
commit
495e1a131c
@ -414,6 +414,11 @@ int main(int argc, char *argv[]) {
|
||||
gpt_header.partition_entry_lba * lb_size + i * gpt_header.size_of_partition_entry,
|
||||
gpt_header.size_of_partition_entry);
|
||||
}
|
||||
for (size_t i = max_partition_entry_used + 1; i < new_partition_entry_count; i++) {
|
||||
device_write(empty,
|
||||
secondary_gpt_header.partition_entry_lba * lb_size + i * secondary_gpt_header.size_of_partition_entry,
|
||||
secondary_gpt_header.size_of_partition_entry);
|
||||
}
|
||||
free(empty);
|
||||
|
||||
uint8_t *partition_array =
|
||||
|
Loading…
Reference in New Issue
Block a user