]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix kernel installed check
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 28 Mar 2024 17:51:36 +0000 (18:51 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Thu, 28 Mar 2024 18:48:43 +0000 (19:48 +0100)
mkosi/__init__.py

index f3ff5589cbc731446648d7fd33e240e16fc837c8..992e268eb0926f41e7734be741c1ee98f60c9551 100644 (file)
@@ -2322,7 +2322,7 @@ def install_kernel(context: Context, partitions: Sequence[Partition]) -> None:
     if want_uki(context) and not stub.exists():
         die(f"Unified kernel image(s) requested but systemd-stub not found at /{stub.relative_to(context.root)}")
 
-    if context.config.bootable == ConfigFeature.enabled and not gen_kernel_images(context):
+    if context.config.bootable == ConfigFeature.enabled and not any(gen_kernel_images(context)):
         die("A bootable image was requested but no kernel was found")
 
     token = find_entry_token(context)