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!
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

build.py 566B

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)