This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-11-20 00:00:00 +00:00
parent 367df352d3
commit 2abb994752
9 changed files with 163 additions and 22 deletions

27
build-disk2 Executable file
View File

@@ -0,0 +1,27 @@
#!/usr/bin/env python3
import common
class Main(common.BuildCliFunction):
def __init__(self):
super().__init__(
description='''\
https://cirosantilli.com/linux-kernel-module-cheat#secondary-disk
'''
)
def build(self):
# We must clean first because mksquashfs tries to avoid overwrites
# by renaming images on the target.
self.clean()
self.sh.run_cmd([
'mksquashfs',
self.env['out_rootfs_overlay_dir'],
self.env['disk_image_2']
])
def clean(self):
self.sh.rmrf(self.env['disk_image_2'])
if __name__ == '__main__':
Main().cli()