copy-overlay 606 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env python3
  2. import distutils.dir_util
  3. import os
  4. import shutil
  5. import common
  6. from shell_helpers import LF
  7. class Main(common.BuildCliFunction):
  8. def __init__(self):
  9. super().__init__(
  10. description='''\
  11. https://github.com/cirosantilli/linux-kernel-module-cheat#rootfs_overlay
  12. ''')
  13. def build(self):
  14. # TODO: print rsync equivalent, move into shell_helpers.
  15. distutils.dir_util.copy_tree(
  16. self.env['rootfs_overlay_dir'],
  17. self.env['out_rootfs_overlay_dir'],
  18. update=1,
  19. )
  20. if __name__ == '__main__':
  21. Main().cli()