IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324
  1. from .zfs import *
  2. def process_step(step, name):
  3. cmd=['jail', '-c']
  4. cmd.append('path=' + '/focker/' + name)
  5. def process_steps(steps, name):
  6. if isinstance(steps, list):
  7. for step in steps:
  8. process_step(step, name)
  9. else:
  10. process_step(steps, name)
  11. def build(spec):
  12. if 'base' not in spec:
  13. raise ValueError('Missing base specification')
  14. base = spec.base
  15. base = zfs_snapshot_by_tag_or_name(base)
  16. root = '/'.join(base.split('/')[:-1])
  17. print('base:', base, 'root:', root)