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!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 4 година
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)