From 546949fd007b52df46bcdf365ba15261062f7abc Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 21 May 2021 17:37:40 +0000 Subject: [PATCH] mounts: add org.osbuild.fat Mount host service for (v)fat filesystems. --- mounts/org.osbuild.fat | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 mounts/org.osbuild.fat diff --git a/mounts/org.osbuild.fat b/mounts/org.osbuild.fat new file mode 100755 index 00000000..e3a002ef --- /dev/null +++ b/mounts/org.osbuild.fat @@ -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()