diff options
Diffstat (limited to 'meta-linaro/recipes-extra/efibootmgr/files/w-keep-existing-mbr-signature.patch')
-rw-r--r-- | meta-linaro/recipes-extra/efibootmgr/files/w-keep-existing-mbr-signature.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-linaro/recipes-extra/efibootmgr/files/w-keep-existing-mbr-signature.patch b/meta-linaro/recipes-extra/efibootmgr/files/w-keep-existing-mbr-signature.patch new file mode 100644 index 0000000..6934808 --- /dev/null +++ b/meta-linaro/recipes-extra/efibootmgr/files/w-keep-existing-mbr-signature.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | Description: Fix -w option to leave an existing unique MBR signature intact | ||
2 | This makes the implementation match the documentation. | ||
3 | Author: Colin Watson <cjwatson@ubuntu.com> | ||
4 | Bug-Ubuntu: https://bugs.launchpad.net/bugs/1065261 | ||
5 | Forwarded: no | ||
6 | Last-Update: 2013-02-01 | ||
7 | |||
8 | Index: b/src/lib/disk.c | ||
9 | =================================================================== | ||
10 | --- a/src/lib/disk.c | ||
11 | +++ b/src/lib/disk.c | ||
12 | @@ -352,7 +352,7 @@ | ||
13 | printf("******************************************************\n\n"); | ||
14 | |||
15 | } | ||
16 | - else if (opts.write_signature) { | ||
17 | + else if (!mbr->unique_mbr_signature && opts.write_signature) { | ||
18 | |||
19 | /* MBR Signatures must be unique for the | ||
20 | EFI Boot Manager | ||