ukify: Fix broken assert when building a signed addon
An assert always expected a kernel when signature key was present in command line. That prevented building signed addons. Fixes #35041
This commit is contained in:
committed by
Yu Watanabe
parent
5cfe76e1d6
commit
053452e22b
+1
-2
@@ -995,8 +995,7 @@ def make_uki(opts: UkifyConfig) -> None:
|
||||
sign_kernel = opts.sign_kernel
|
||||
linux = opts.linux
|
||||
|
||||
if sign_args_present:
|
||||
assert opts.linux is not None
|
||||
if opts.linux and sign_args_present:
|
||||
assert opts.signtool is not None
|
||||
|
||||
if not sign_kernel:
|
||||
|
||||
Reference in New Issue
Block a user