bootstrap-vz/bootstrapvz/plugins/debconf/tasks.py
Nicolas Braud-Santoni ad79b63c19 Add 'debconf' plugin
Closes #282
2016-02-23 17:30:17 +01:00

15 lines
531 B
Python

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'])