bootstrap-vz/bootstrapvz/plugins/debconf/tasks.py

16 lines
531 B
Python
Raw Permalink Normal View History

2016-02-22 15:19:27 +01:00
from bootstrapvz.base import Task
from bootstrapvz.common import phases
from bootstrapvz.common.tasks import packages
from bootstrapvz.common.tools import log_check_call
class DebconfSetSelections(Task):
description = 'Set debconf(7) selections from the manifest'
phase = phases.package_installation
successors = [packages.InstallPackages]
@classmethod
def run(cls, info):
log_check_call(['chroot', info.root, 'debconf-set-selections'],
stdin=info.manifest.plugins['debconf'])