mounts/org.osbuild.btrfs: add support for compression

Also, add it to the sample manifest.
This commit is contained in:
Ondřej Budai 2023-06-16 14:05:41 +02:00 committed by Ondřej Budai
parent 3bbded4607
commit b94048dfd4
4 changed files with 15 additions and 6 deletions

View file

@ -141,6 +141,8 @@ class FileSystemMountService(MountService):
opts.append(f"shortname={options['shortname']}")
if "subvol" in options:
opts.append(f"subvol={options['subvol']}")
if "compress" in options:
opts.append(f"compress={options['compress']}")
if opts:
return ["-o", ",".join(opts)]
return []