]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Make sure addon initrds are compressed as well
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 19 Jan 2025 20:20:30 +0000 (21:20 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 19 Jan 2025 20:57:52 +0000 (21:57 +0100)
mkosi/config.py
mkosi/resources/man/mkosi.1.md

index 4b1cd3b4e75acde0568e67aa97ba4b746087b44a..775d9b565c337ff083a941a31fd0b48329bee7aa 100644 (file)
@@ -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
index a59c8794f5b19ad0f84cae144b76791643ccf4af..dbe3ed3a554ddd8ccbd53bd4c6d601b6dedf342b 100644 (file)
@@ -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