The argument parsing was blocking this but the logic invoking
mksquashfs already supported it.
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
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