SHA256
1
0
forked from pool/efibootmgr
efibootmgr/efibootmgr-0.6.0-write-unique-id-once.diff

18 lines
458 B
Diff
Raw Normal View History

Write "unique_mbr_signature" only once to MBR!
---
src/lib/disk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/src/lib/disk.c
+++ b/src/lib/disk.c
@@ -353,7 +353,7 @@ msdos_disk_get_partition_info (int fd, l
printf("******************************************************\n\n");
}
- else if (opts.write_signature) {
+ else if (!mbr->unique_mbr_signature) {
/* MBR Signatures must be unique for the
EFI Boot Manager