mounts: add org.osbuild.xfs

Mount host service for xfs filesystems.
This commit is contained in:
Christian Kellner 2021-05-21 17:37:21 +00:00 committed by Tom Gundersen
parent 367a044453
commit ddb7aa4431

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

@ -0,0 +1,33 @@
#!/usr/bin/python3
"""
XFS mount service
Mount a XFS 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", "xfs"]
def main():
service = XfsMount.from_args(sys.argv[1:])
service.main()
if __name__ == '__main__':
main()