aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/efibootmgr/files/w-keep-existing-mbr-signature.patch
blob: 58bd13556445c59a0b19c016fe795ff627c801dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Upstream-Status: Pending

Import this patch from meta-linaro.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
Description: Fix -w option to leave an existing unique MBR signature intact
 This makes the implementation match the documentation.
Author: Colin Watson <cjwatson@ubuntu.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1065261
Forwarded: no
Last-Update: 2013-02-01

Index: b/src/lib/disk.c
===================================================================
--- a/src/lib/disk.c
+++ b/src/lib/disk.c
@@ -352,7 +352,7 @@
 		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