]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Allow uncompressed squashfs images
authorreuben olinsky <reubeno@users.noreply.github.com>
Fri, 28 Oct 2022 02:51:41 +0000 (19:51 -0700)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 2 Nov 2022 09:17:41 +0000 (10:17 +0100)
The argument parsing was blocking this but the logic invoking
mksquashfs already supported it.

mkosi/__init__.py
tests/test_parse_load_args.py

index 28a3f11abba83b7e89849a4062f5dfc110aafacd..218099b8e7c462cb114d17d61fc2e8aacabcd577 100644 (file)
@@ -6583,8 +6583,6 @@ def load_args(args: argparse.Namespace) -> MkosiConfig:
         if args.root_size is None:
             # Size will be automatic
             args.minimize = True
-        if args.compress is False:
-            die("Cannot disable compression with squashfs", MkosiNotSupportedException)
         if args.compress is None:
             args.compress = True
 
index 7ded908c265a0e6ff4e907429bd51c464b34a4e5..9646ed826a0e03dfb1778b660a39eb1630f68208 100644 (file)
@@ -135,6 +135,5 @@ def test_shell_boot() -> None:
 def test_compression() -> None:
     assert parse(["--format", "gpt_squashfs"]).compress
 
-    with pytest.raises(MkosiException, match=".*compression.*squashfs"):
-        parse(["--format", "gpt_squashfs", "--compress", "False"])
+    assert not parse(["--format", "gpt_squashfs", "--compress", "False"]).compress