bootstrap-vz/common/tasks/packages.py
2013-10-27 18:11:52 +01:00

24 lines
609 B
Python

from base import Task
from common import phases
class HostPackages(Task):
description = 'Determining required host packages'
phase = phases.preparation
def run(self, info):
packages = set(['debootstrap'])
info.host_packages = packages
class ImagePackages(Task):
description = 'Determining required image packages'
phase = phases.preparation
def run(self, info):
# Add some basic packages we are going to need
# We could bootstrap without locales, but things just suck without them, error messages etc.
include = set(['locales'])
exclude = set()
info.img_packages = include, exclude