File: 0005-fix-vendor-sbat-string.patch

package info (click to toggle)
fwupd 1.5.7-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,272 kB
  • sloc: ansic: 117,489; xml: 5,714; python: 2,535; sh: 688; asm: 250; makefile: 169; cpp: 21
file content (27 lines) | stat: -rw-r--r-- 1,003 bytes parent folder | download
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
27
Patch to fix SBAT format.
Already snet upstream and accepted there.

commit 50348e1104a97db27253ddd1d5e8522fa7aa63bc
Author: Steve McIntyre <93sam@debian.org>
Date:   Fri Mar 26 15:06:08 2021 +0000

    Tweak the SBAT output for a vendor string
    
    The format is meant to be "<project>.<vendor>" with a period as a
    separator.
    
    Signed-off-by: Steve McIntyre <93sam@debian.org>

diff --git a/plugins/uefi-capsule/efi/generate_sbat.py b/plugins/uefi-capsule/efi/generate_sbat.py
index 18f7c4c7..1f12ca11 100755
--- a/plugins/uefi-capsule/efi/generate_sbat.py
+++ b/plugins/uefi-capsule/efi/generate_sbat.py
@@ -51,7 +51,7 @@ def _generate_sbat(args):
 
         # distro specifics, falling back to the project defaults
         sfd.write(
-            "{0}-{1},{2},{3},{4},{5},{6}\n".format(
+            "{0}.{1},{2},{3},{4},{5},{6}\n".format(
                 args.project_name,
                 args.sbat_distro_id,
                 args.sbat_distro_generation or args.sbat_generation,