mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00

It binds folders from the host machine to temporary and cache folders in the image. This way dynamic volumes will not grow in size when running `apt-get update` etc.
16 lines
429 B
Python
16 lines
429 B
Python
import tasks
|
|
|
|
|
|
def resolve_tasks(tasklist, manifest):
|
|
tasklist.add(tasks.AddFolderMounts,
|
|
tasks.RemoveFolderMounts)
|
|
|
|
|
|
def resolve_rollback_tasks(tasklist, tasks_completed, manifest):
|
|
completed = [type(task) for task in tasks_completed]
|
|
|
|
def counter_task(task, counter):
|
|
if task in completed and counter not in completed:
|
|
tasklist.add(counter)
|
|
|
|
counter_task(tasks.AddFolderMounts, tasks.RemoveFolderMounts)
|