debian-forge/mounts/org.osbuild.btrfs
Christian Kellner 8dde9d9590 mounts/btrfs: mount support for btrfs
Host service to mount a btrfs at the given location.
2021-06-09 18:37:47 +01:00

33 lines
480 B
Python
Executable file

#!/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()