small fixes
This commit is contained in:
parent
81f22e67ae
commit
0e21f9060d
5 changed files with 9 additions and 8 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue