main
This commit is contained in:
parent
39937fef36
commit
ac82cfbaca
1 changed files with 29 additions and 0 deletions
29
__main__.py
Executable file
29
__main__.py
Executable file
|
@ -0,0 +1,29 @@
|
|||
#! /usr/bin/env python3
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
def bootstrap():
|
||||
pass
|
||||
|
||||
|
||||
def squash(input_root):
|
||||
subprocess.call([
|
||||
'mksquashfs',
|
||||
input_root,
|
||||
?,
|
||||
'-comp', 'zstd',
|
||||
'-Xcompression-level', str(18),
|
||||
])
|
||||
|
||||
|
||||
def main():
|
||||
_, output_root = sys.argv
|
||||
bootstrap()
|
||||
squash()
|
||||
print('ok')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
Loading…
Reference in a new issue