Apply the isort modifications to the entire source tree, not just the selected python files of test-src. Signed-off-by: David Rheinsberg <david.rheinsberg@gmail.com>
47 lines
773 B
Python
Executable file
47 lines
773 B
Python
Executable file
#!/usr/bin/python3
|
|
"""
|
|
ext4 mount service
|
|
|
|
Mount a ext4 filesystem at the given location.
|
|
|
|
Host commands used: mount
|
|
"""
|
|
|
|
import sys
|
|
from typing import Dict
|
|
|
|
from osbuild import mounts
|
|
|
|
SCHEMA_2 = """
|
|
"additionalProperties": false,
|
|
"required": ["name", "type", "source", "target"],
|
|
"properties": {
|
|
"name": { "type": "string" },
|
|
"type": { "type": "string" },
|
|
"source": {
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"type": "string"
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
}
|
|
}
|
|
"""
|
|
|
|
|
|
class Ext4Mount(mounts.FileSystemMountService):
|
|
|
|
def translate_options(self, _options: Dict):
|
|
return ["-t", "ext4"]
|
|
|
|
|
|
def main():
|
|
service = Ext4Mount.from_args(sys.argv[1:])
|
|
service.main()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|