mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
Motivation: userland is getting several new subdirectories, it would be too insane to just dump all of that in the guest root filesystem. To alleviate the cd pain, .profile puts user inside /lkmc by default.
25 lines
533 B
Python
Executable File
25 lines
533 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import distutils.dir_util
|
|
import os
|
|
import shutil
|
|
|
|
import common
|
|
from shell_helpers import LF
|
|
|
|
class Main(common.BuildCliFunction):
|
|
def __init__(self):
|
|
super().__init__(
|
|
description='''\
|
|
https://github.com/cirosantilli/linux-kernel-module-cheat#rootfs_overlay
|
|
''')
|
|
|
|
def build(self):
|
|
self.sh.copy_dir_if_update(
|
|
srcdir=self.env['rootfs_overlay_dir'],
|
|
destdir=self.env['out_rootfs_overlay_dir'],
|
|
)
|
|
|
|
if __name__ == '__main__':
|
|
Main().cli()
|