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

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
16 lines
463 B
Python
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']))
|