projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cfe76e
)
ukify: Fix broken assert when building a signed addon
author
Valentin David
<me@valentindavid.com>
Sat, 9 Nov 2024 12:56:34 +0000
(13:56 +0100)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 9 Nov 2024 20:44:30 +0000
(
05:44
+0900)
An assert always expected a kernel when signature key was present in command
line. That prevented building signed addons.
Fixes #35041
src/ukify/ukify.py
patch
|
blob
|
history
diff --git
a/src/ukify/ukify.py
b/src/ukify/ukify.py
index 355e3f99f4132b6e3a754446f439541c64db9275..6197a8f7f48432e87b5e3c5ca8d97544a39e1ba0 100755
(executable)
--- a/
src/ukify/ukify.py
+++ b/
src/ukify/ukify.py
@@
-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: