mounts/btrfs: mount support for btrfs

Host service to mount a btrfs at the given location.
This commit is contained in:
Christian Kellner 2021-06-02 15:20:18 +00:00 committed by Tom Gundersen
parent 7ecf592f5b
commit 8dde9d9590

33
mounts/org.osbuild.btrfs Executable file
View file

@ -0,0 +1,33 @@
#!/usr/bin/python3
"""
btrfs mount service
Mount a btrfs filesystem at the given location.
Host commands used: mount
"""
import sys
from typing import Dict
from osbuild import mounts
SCHEMA = """
"additionalProperties": False
"""
class BtrfsMount(mounts.MountService):
def translate_options(self, _options: Dict):
return ["-t", "btrfs"]
def main():
service = BtrfsMount.from_args(sys.argv[1:])
service.main()
if __name__ == '__main__':
main()