mounts: add org.osbuild.fat
Mount host service for (v)fat filesystems.
This commit is contained in:
parent
ddb7aa4431
commit
546949fd00
1 changed files with 33 additions and 0 deletions
33
mounts/org.osbuild.fat
Executable file
33
mounts/org.osbuild.fat
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
#!/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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue