bootstrap-vz/bootstrapvz/plugins/root_password/tasks.py
2014-04-02 21:26:13 +02:00

13 lines
367 B
Python

from base import Task
from common import phases
class SetRootPassword(Task):
description = 'Setting the root password'
phase = phases.system_modification
@classmethod
def run(cls, info):
from common.tools import log_check_call
log_check_call(['chroot', info.root, 'chpasswd'],
'root:' + info.manifest.plugins['root_password']['password'])