From 8dde9d959058eeab1490d646357cd893d1d56891 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Wed, 2 Jun 2021 15:20:18 +0000 Subject: [PATCH] mounts/btrfs: mount support for btrfs Host service to mount a btrfs at the given location. --- mounts/org.osbuild.btrfs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 mounts/org.osbuild.btrfs diff --git a/mounts/org.osbuild.btrfs b/mounts/org.osbuild.btrfs new file mode 100755 index 00000000..e1dc5a0d --- /dev/null +++ b/mounts/org.osbuild.btrfs @@ -0,0 +1,33 @@ +#!/usr/bin/python3 +""" +btrfs mount service + +Mount a btrfs filesystem at the given location. + +Host commands used: mount +""" + +import sys +from typing import Dict + +from osbuild import mounts + + +SCHEMA = """ +"additionalProperties": False +""" + + +class BtrfsMount(mounts.MountService): + + def translate_options(self, _options: Dict): + return ["-t", "btrfs"] + + +def main(): + service = BtrfsMount.from_args(sys.argv[1:]) + service.main() + + +if __name__ == '__main__': + main()