debian-forge/mounts/org.osbuild.fat
Christian Kellner 546949fd00 mounts: add org.osbuild.fat
Mount host service for (v)fat filesystems.
2021-06-09 18:37:47 +01:00

33 lines
471 B
Python
Executable file

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