exception of 'efibootmgr-0.6.0-write-unique-id-once.diff', which wasn't "released" yet. OBS-URL: https://build.opensuse.org/package/show/Base:System/efibootmgr?expand=0&rev=12
28 lines
979 B
Diff
28 lines
979 B
Diff
From: Raymund Will <rw@suse.com>
|
|
Subject: Don't let '--write-signature' overwrite unique signatures.
|
|
References: bnc#
|
|
|
|
Using '--write-signature' on an MBR-partitioned disk always overwrites
|
|
the previous signature, even if it was already unique.
|
|
While not using GPT is against the spec, it still works most of the time.
|
|
The issue is, that excessively writing new entries to NVRAM (and incidentally
|
|
breaking all old references to the partition in question) was found to
|
|
bring trouble to certain systems.
|
|
|
|
Signed-off-by: Raymund Will <rw@suse.com>
|
|
---
|
|
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 && opts.write_signature) {
|
|
|
|
/* MBR Signatures must be unique for the
|
|
EFI Boot Manager
|