summaryrefslogtreecommitdiffstats
path: root/src/virtBootstrap/virt_bootstrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/virtBootstrap/virt_bootstrap.py')
-rwxr-xr-xsrc/virtBootstrap/virt_bootstrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virtBootstrap/virt_bootstrap.py b/src/virtBootstrap/virt_bootstrap.py
index 85aca33..c66cc92 100755
--- a/src/virtBootstrap/virt_bootstrap.py
+++ b/src/virtBootstrap/virt_bootstrap.py
@@ -77,7 +77,7 @@ def set_root_password(rootfs, password):
users = 'root:%s' % password
args = ['chpasswd', '-R', rootfs]
chpasswd = Popen(args, stdin=PIPE)
- chpasswd.communicate(input=users)
+ chpasswd.communicate(input=users.encode('utf-8'))
if chpasswd.returncode != 0:
raise CalledProcessError(chpasswd.returncode, cmd=args, output=None)