From: Daan De Meyer Date: Wed, 19 Apr 2023 13:29:31 +0000 (+0200) Subject: Don't run kernel-install if the output format is a cpio X-Git-Tag: v15~230^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57f00a55ff4a80c7b4c5f5625e0329f29840d17c;p=thirdparty%2Fmkosi.git Don't run kernel-install if the output format is a cpio If we're building a cpio, we're very likely not going to want to install a kernel, so don't do it if bootable is in "auto" mode. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index ebd817a83..c3f304cd1 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1568,6 +1568,9 @@ def run_kernel_install(state: MkosiState, cached: bool) -> None: if state.config.bootable is False: return + if state.config.bootable is None and state.config.output_format == OutputFormat.cpio: + return + # CentOS Stream 8 has an old version of kernel-install that unconditionally writes initrds to # /boot//, so let's detect that and move them to the correct location.