mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
28 lines
659 B
Python
Executable File
28 lines
659 B
Python
Executable File
#!/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()
|