bootstrap-vz/providers/virtualbox/tasks/packages.py
Anders Ingemann 1c93094833 Integrated package plugin with base system
New phase introduced "package installation" (fixes #114)
Apt source lines are now parsed, this allows to verify the target release of added packages.
All packages (except locales) are now installed *after* bootstrapping (fixes #123)
Added env argument to log_(check_)call
HostDependencies have been refactored a little
2013-12-29 20:58:06 +01:00

16 lines
463 B
Python

from base import Task
from common import phases
from common.tasks import packages
class DefaultPackages(Task):
description = 'Adding image packages required for virtualbox'
phase = phases.preparation
def run(self, info):
# Add some basic packages we are going to need
info.packages.add('grub2')
kernels = {'amd64': 'linux-image-amd64',
'i386': 'linux-image-686', }
info.packages.add(kernels.get(info.manifest.system['architecture']))