From: Daan De Meyer Date: Fri, 22 Sep 2023 11:01:51 +0000 (+0200) Subject: Don't skip UKI generation when building a directory image X-Git-Tag: v18~45^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1db5bec7f0e9afe9367a10739abaee4969b69c82;p=thirdparty%2Fmkosi.git Don't skip UKI generation when building a directory image 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. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 1289e5ac8..d144a2e0a 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -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