From: Daan De Meyer Date: Sun, 19 Jan 2025 20:20:30 +0000 (+0100) Subject: Make sure addon initrds are compressed as well X-Git-Tag: v25~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c42ffa74d2b9b494957b9785dd590ccd6b81bd3;p=thirdparty%2Fmkosi.git Make sure addon initrds are compressed as well --- diff --git a/mkosi/config.py b/mkosi/config.py index 4b1cd3b4e..775d9b565 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -843,7 +843,13 @@ def config_parse_mode(value: Optional[str], old: Optional[int]) -> Optional[int] def config_default_compression(namespace: argparse.Namespace) -> Compression: - if namespace.output_format in (OutputFormat.tar, OutputFormat.cpio, OutputFormat.uki, OutputFormat.esp): + if namespace.output_format in ( + OutputFormat.tar, + OutputFormat.cpio, + OutputFormat.uki, + OutputFormat.esp, + OutputFormat.addon, + ): return Compression.zstd elif namespace.output_format == OutputFormat.oci: return Compression.gz diff --git a/mkosi/resources/man/mkosi.1.md b/mkosi/resources/man/mkosi.1.md index a59c8794f..dbe3ed3a5 100644 --- a/mkosi/resources/man/mkosi.1.md +++ b/mkosi/resources/man/mkosi.1.md @@ -565,7 +565,7 @@ boolean argument: either `1`, `yes`, or `true` to enable, or `0`, `no`, compression means the image cannot be started directly but needs to be decompressed first. This also means that the `shell`, `boot`, `vm` verbs are not available when this option is used. Implied for `tar`, `cpio`, `uki`, - `esp`, and `oci`. + `esp`, `oci` and `addon`. `CompressLevel=`, `--compress-level=` : Configure the compression level to use. Takes an integer. The possible