debian-forge/mounts/org.osbuild.ext4
Christian Kellner 7ecf592f5b mounts/ext4: mount support for ext4 file systems
Host service to mount an ext4 file system.
2021-06-09 18:37:47 +01:00

33 lines
475 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 = """
"additionalProperties": false
"""
class Ext4Mount(mounts.MountService):
def translate_options(self, _options: Dict):
return ["-t", "ext4"]
def main():
service = Ext4Mount.from_args(sys.argv[1:])
service.main()
if __name__ == '__main__':
main()