]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
mkosi-initrd: Add comment on initrd always being compressed
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 18 Dec 2023 13:46:36 +0000 (14:46 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 18 Dec 2023 13:55:31 +0000 (14:55 +0100)
mkosi/__init__.py

index 509273107eb42fbbbe3f9913463600e8ca9860f3..44cfe7d67b84cc3cfc4ad873d955c9e67800c350 100644 (file)
@@ -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),