bootstrap-vz/plugins/root_password/tasks.py
Anders Ingemann ec6639c8be Move security task to common tasks
Converted root pw task to plugin
2013-08-10 17:12:58 +02:00

12 lines
372 B
Python

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