small fixes

This commit is contained in:
InsanePrawn 2021-09-30 05:05:30 +02:00
parent 81f22e67ae
commit 0e21f9060d
5 changed files with 9 additions and 8 deletions

View file

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