From: Zbigniew Jędrzejewski-Szmek Date: Mon, 13 Nov 2023 14:13:30 +0000 (+0100) Subject: ukify: show .sbom sections as binary X-Git-Tag: v255-rc2~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f99304fe2380e03b747c7cf30dd63c575a61270a;p=thirdparty%2Fsystemd.git ukify: show .sbom sections as binary Fixup for e87dec82bec6eff015b368b3c746810d684fc6af: I misunderstood the format. It's actually CBOR, i.e. some binary format. When trying to show show text we would first check if it's valid UTF-8, so we would handle this gracefully, i.e. emit a warning and not print the contents. --- diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py index 2ab9c5894ce..08f505a2715 100755 --- a/src/ukify/ukify.py +++ b/src/ukify/ukify.py @@ -265,7 +265,7 @@ DEFAULT_SECTIONS_TO_SHOW = { '.pcrpkey' : 'text', '.pcrsig' : 'text', '.sbat' : 'text', - '.sbom' : 'text', + '.sbom' : 'binary', } @dataclasses.dataclass