From: Daan De Meyer Date: Mon, 18 Dec 2023 13:46:36 +0000 (+0100) Subject: mkosi-initrd: Add comment on initrd always being compressed X-Git-Tag: v20~55^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d454178ff5a4ad7c8fc28de1e91bcbc61bfc05d;p=thirdparty%2Fmkosi.git mkosi-initrd: Add comment on initrd always being compressed --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 509273107..44cfe7d67 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1312,6 +1312,8 @@ def build_initrd(state: MkosiState) -> Path: "--repository-key-check", str(state.config.repository_key_check), "--repositories", ",".join(state.config.repositories), "--package-manager-tree", ",".join(format_tree(t) for t in state.config.package_manager_trees), + # Note that when compress_output == Compression.none == 0 we don't pass --compress-output which means the + # default compression will get picked. This is exactly what we want so that initrds are always compressed. *(["--compress-output", str(state.config.compress_output)] if state.config.compress_output else []), "--with-network", str(state.config.with_network), "--cache-only", str(state.config.cache_only),