rwx/cmd/squashfs/__init__.py

15 lines
246 B
Python
Raw Normal View History

2024-02-16 20:31:38 +00:00
import cmd
import ps
2024-02-16 20:11:28 +00:00
cmd.need('mksquashfs')
def mksquashfs(input_root: str, output_file: str):
ps.run([
'mksquashfs',
input_root,
output_file,
'-comp', 'zstd',
'-Xcompression-level', str(18),
])