Tails Installer crashes if any UUID includes Unicode character
Someone reported us that Tails Installer crashes if any UUID on the
system includes a Unicode character. Apparently, this could happen
with
some disk encryption software for Windows. Then, even if that UUID is
on
the local hard disk, Tails Installer crashes:
amnesia
amnesia:~$ liveusb-creator -u -n —clone -P -m -x -v@
Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
[creator:1188] extlinux not found! Only FAT filesystems will be
supported
[creator:663] Skipping device '/org/freedesktop/UDisks/devices/sda1'
connected to 'ata' interface
Traceback (most recent call last):
@ File “/usr/lib/python2.7/dist-packages/dbus/connection.py”, line @
604, in msg_reply_handler
@ reply_handler(message.get_args_list(*get_args_opts))@
@ File “/usr/lib/python2.7/dist-packages/liveusb/creator.py”, line @
647, in handle_reply
@ ‘uuid’: str(dev.Get(device, ‘IdUuid’)),@
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0297' in
position 18: ordinal not in range(128)
The reporter says that this can be solved by changing str() to
unicode()
on line 647 of creator.py.
Someone knowledgeable about the internals of the installer should
investigate whether this fix could be applied with no risk.
Related issues
- Related to #15292 (closed)
Original created by @sajolida on 7654 (Redmine)