mounts/org.osbuild.btrfs: add support for mounting subvolumes

Co-authored-by: Christian Kellner <christian@kellner.me>
This commit is contained in:
Ondřej Budai 2023-05-18 12:45:11 +02:00 committed by Ondřej Budai
parent 724183b35c
commit 0952ae9933
2 changed files with 6 additions and 0 deletions

View file

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