From: Malte Poll Date: Wed, 24 May 2023 09:01:25 +0000 (+0200) Subject: ukify: fix handling signed kernel as file X-Git-Tag: v254-rc1~394 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d89d66ce8b8488e85670714270b4bf87050733e;p=thirdparty%2Fsystemd.git ukify: fix handling signed kernel as file The .linux section would contain the path to the signed kernel (instead of the signed kernel itself), since the python type of the variable is used to determine how it is handled when adding the pe sections. Co-authored-by: Otto Bittner --- diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py index d87670eb24a..60b2bf030be 100755 --- a/src/ukify/ukify.py +++ b/src/ukify/ukify.py @@ -635,7 +635,7 @@ def make_uki(opts): if sign_kernel: linux_signed = tempfile.NamedTemporaryFile(prefix='linux-signed') - linux = linux_signed.name + linux = pathlib.Path(linux_signed.name) sign(sign_tool, opts.linux, linux, opts=opts) else: linux = opts.linux