mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-25 15:56:29 +00:00
17 lines
463 B
Python
17 lines
463 B
Python
![]() |
from base import Task
|
||
|
from common import phases
|
||
|
from common.tasks import apt
|
||
|
|
||
|
|
||
|
class DefaultPackages(Task):
|
||
|
description = 'Adding image packages required for kvm'
|
||
|
phase = phases.preparation
|
||
|
predecessors = [apt.AddDefaultSources]
|
||
|
|
||
|
@classmethod
|
||
|
def run(cls, info):
|
||
|
kernels = {'amd64': 'linux-image-amd64',
|
||
|
'i386': 'linux-image-686', }
|
||
|
info.packages.add(kernels.get(info.manifest.system['architecture']))
|
||
|
info.packages.add('openssh-server')
|