From 8d89d66ce8b8488e85670714270b4bf87050733e Mon Sep 17 00:00:00 2001 From: Malte Poll Date: Wed, 24 May 2023 11:01:25 +0200 Subject: [PATCH] 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 --- src/ukify/ukify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3