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()