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!
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

25 lignes
566B

  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)