debian-forge/mounts/org.osbuild.fat
David Rheinsberg d77e87f3c1 mounts/fat: Xfs -> Fat
Fix the wrong symbol prefixes for the Fat-Mounter. Looks like a
copy-paste from the Xfs-mounter.

Signed-off-by: David Rheinsberg <david.rheinsberg@gmail.com>
2022-07-22 18:06:24 +02:00

48 lines
770 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_2 = """
"additionalProperties": false,
"required": ["name", "type", "source", "target"],
"properties": {
"name": { "type": "string" },
"type": { "type": "string" },
"source": {
"type": "string"
},
"target": {
"type": "string"
},
"options": {
"type": "object",
"additionalProperties": true
}
}
"""
class FatMount(mounts.FileSystemMountService):
def translate_options(self, _options: Dict):
return ["-t", "vfat"]
def main():
service = FatMount.from_args(sys.argv[1:])
service.main()
if __name__ == '__main__':
main()