33 lines
480 B
Python
Executable file
33 lines
480 B
Python
Executable file
#!/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()
|