Fix image building

This commit is contained in:
jld3103 2021-10-08 15:22:02 +02:00
parent a8695f0095
commit 77ebd48eab
2 changed files with 9 additions and 4 deletions

View file

@ -133,7 +133,7 @@ def create_chroot_user(
install_script += f'echo "{user}:{password}" | chpasswd'
else:
install_script += 'echo "Set user password:" && passwd'
result = run_chroot_cmd([install_script], chroot_path=chroot_path)
result = run_chroot_cmd(install_script, chroot_path=chroot_path)
if result.returncode != 0:
raise Exception('Failed to setup user')