diff options
author | Valentin David <me@valentindavid.com> | 2024-11-09 13:56:34 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-11-09 21:44:30 +0100 |
commit | 053452e22b68877e1df0d218405c0236a4a92ae5 (patch) | |
tree | f3e9b5e69844e782c1993d7f987c94725b8c851a /src/ukify | |
parent | po: Translated using Weblate (German) (diff) | |
download | systemd-053452e22b68877e1df0d218405c0236a4a92ae5.tar.xz systemd-053452e22b68877e1df0d218405c0236a4a92ae5.zip |
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
Diffstat (limited to 'src/ukify')
-rwxr-xr-x | src/ukify/ukify.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py index 355e3f99f4..6197a8f7f4 100755 --- 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: |