bootstrap-vz/common/tasks/packages.py

25 lines
609 B
Python
Raw Normal View History

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
2013-09-22 15:40:51 +02:00
# We could bootstrap without locales, but things just suck without them, error messages etc.
include = set(['locales'])
exclude = set()
info.img_packages = include, exclude