diff --git a/bootstrapvz/plugins/root_password/manifest-schema.yml b/bootstrapvz/plugins/root_password/manifest-schema.yml index b5969de..5958b34 100644 --- a/bootstrapvz/plugins/root_password/manifest-schema.yml +++ b/bootstrapvz/plugins/root_password/manifest-schema.yml @@ -13,6 +13,5 @@ properties: - required: [password-crypted] properties: password: {type: string} - properties: password-crypted: {type: string} additionalProperties: false diff --git a/bootstrapvz/plugins/root_password/tasks.py b/bootstrapvz/plugins/root_password/tasks.py index 9f2eac9..fe2d189 100644 --- a/bootstrapvz/plugins/root_password/tasks.py +++ b/bootstrapvz/plugins/root_password/tasks.py @@ -11,9 +11,8 @@ class SetRootPassword(Task): from bootstrapvz.common.tools import log_check_call password_crypted = info.manifest.plugins['root_password'].get('password-crypted', None) if password_crypted is not None: - log_check_call(['chpasswd', '--root', info.root, '--encrypted'], + log_check_call(['chroot', info.root, '/usr/sbin/chpasswd', '--encrypted'], 'root:' + password_crypted) else: - log_check_call(['chroot', info.root, 'chpasswd'], + log_check_call(['chroot', info.root, '/usr/sbin/chpasswd'], 'root:' + info.manifest.plugins['root_password']['password']) -