]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Don't skip UKI generation when building a directory image
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 22 Sep 2023 11:01:51 +0000 (13:01 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 22 Sep 2023 11:09:03 +0000 (13:09 +0200)
When building a cpio/UKI image, it doesn't generally make sense to
generate a UKI to put inside the cpio/UKI. This isn't entirely true
for directory images though, it could be that the directory image
is intended to be packed up as some kind of disk image later, so
let's not skip UKI generation automatically when building a directory
image.

mkosi/__init__.py

index 1289e5ac87f86567fe0b2ed611f13e8a4a622a8e..d144a2e0a06b7c155dab04e6c3c39b508e3be687 100644 (file)
@@ -1130,7 +1130,7 @@ def install_uki(state: MkosiState, partitions: Sequence[Partition]) -> None:
         break
 
     if (
-        state.config.output_format in (OutputFormat.cpio, OutputFormat.uki, OutputFormat.directory) and
+        state.config.output_format in (OutputFormat.cpio, OutputFormat.uki) and
         state.config.bootable == ConfigFeature.auto
     ):
         return