Closed kovetskiy closed 4 years ago
Hi!
Confirmed, probably a regression from the transition from Python 2 to Python 3.
Please try --debug
when you need a backtrace next time. For this one I get:
[..]
Traceback (most recent call last):
File "[..]/image-bootstrap/directory_bootstrap/shared/output_control.py", line 40, in run_handle_errors
main_function(messenger, options)
File "[..]/image-bootstrap/image_bootstrap/__main__.py", line 97, in _main__level_three
bootstrap.run()
File "[..]/image-bootstrap/image_bootstrap/engine.py", line 944, in run
self._set_root_password_inside_chroot()
File "[..]/image-bootstrap/image_bootstrap/engine.py", line 444, in _set_root_password_inside_chroot
p.stdin.write('root:%s' % self._config.root_password)
TypeError: a bytes-like object is required, not 'str'
Error: a bytes-like object is required, not 'str'
[..]
Let me have a closer look.
I have pushed a fix now, tagged 2.0.4 in Git, and uploaded 2.0.4 to PyPI. Be sure to use 2.0.4 for Arch to not miss out on this security fix.
Hi there, image-bootstrap fails everytime when I specify a password using --password or --password-file (I put password in a file) options. It fails every time.
Here is the log:
Unfortunately, this python-ish error doesn't have a stacktrace.