2023-04-27 07:21:40 |
Olivier Gayot |
bug |
|
|
added bug |
2023-04-27 07:21:59 |
Olivier Gayot |
description |
When accents or other special characters are present in a GPT PartitionName (aka. PARTNAME or partlabel), probert storage runs fail with the following exception:
[...]
File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/probert/storage.py", line 221, in probe
result = probe.pfunc(context=self.context, enabled_probes=to_probe)
File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/probert/storage.py", line 141, in blockdev_probe
blockdev[device['DEVNAME']] = dict(device)
File "/snap/ubuntu-desktop-installer/939/usr/lib/python3/dist-packages/pyudev/device/_device.py", line 945, in __getitem__
return self.properties.__getitem__(prop)
File "/snap/ubuntu-desktop-installer/939/usr/lib/python3/dist-packages/pyudev/device/_device.py", line 1068, in __getitem__
return ensure_unicode_string(value)
File "/snap/ubuntu-desktop-installer/939/usr/lib/python3/dist-packages/pyudev/_util.py", line 64, in ensure_unicode_string
value = value.decode(sys.getfilesystemencoding())
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc9 in position 0: invalid continuation byte
I've opened an issue in pyudev upstream with steps to reproduce a potential change to implement: https://github.com/pyudev/pyudev/issues/490 |
When accents or other special characters are present in a GPT PartitionName (aka. PARTNAME or partlabel), probert storage runs fail with the following exception:
[...]
File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/probert/storage.py", line 221, in probe
result = probe.pfunc(context=self.context, enabled_probes=to_probe)
File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/probert/storage.py", line 141, in blockdev_probe
blockdev[device['DEVNAME']] = dict(device)
File "/snap/ubuntu-desktop-installer/939/usr/lib/python3/dist-packages/pyudev/device/_device.py", line 945, in __getitem__
return self.properties.__getitem__(prop)
File "/snap/ubuntu-desktop-installer/939/usr/lib/python3/dist-packages/pyudev/device/_device.py", line 1068, in __getitem__
return ensure_unicode_string(value)
File "/snap/ubuntu-desktop-installer/939/usr/lib/python3/dist-packages/pyudev/_util.py", line 64, in ensure_unicode_string
value = value.decode(sys.getfilesystemencoding())
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc9 in position 0: invalid continuation byte
I've opened an issue in pyudev upstream with steps to reproduce and a potential change to implement: https://github.com/pyudev/pyudev/issues/490 |
|
2023-04-27 07:29:31 |
Olivier Gayot |
description |
When accents or other special characters are present in a GPT PartitionName (aka. PARTNAME or partlabel), probert storage runs fail with the following exception:
[...]
File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/probert/storage.py", line 221, in probe
result = probe.pfunc(context=self.context, enabled_probes=to_probe)
File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/probert/storage.py", line 141, in blockdev_probe
blockdev[device['DEVNAME']] = dict(device)
File "/snap/ubuntu-desktop-installer/939/usr/lib/python3/dist-packages/pyudev/device/_device.py", line 945, in __getitem__
return self.properties.__getitem__(prop)
File "/snap/ubuntu-desktop-installer/939/usr/lib/python3/dist-packages/pyudev/device/_device.py", line 1068, in __getitem__
return ensure_unicode_string(value)
File "/snap/ubuntu-desktop-installer/939/usr/lib/python3/dist-packages/pyudev/_util.py", line 64, in ensure_unicode_string
value = value.decode(sys.getfilesystemencoding())
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc9 in position 0: invalid continuation byte
I've opened an issue in pyudev upstream with steps to reproduce and a potential change to implement: https://github.com/pyudev/pyudev/issues/490 |
When accents or other special characters are present in a GPT PartitionName (aka. PARTNAME or partlabel), probert storage runs fail with the following exception:
[...]
File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/probert/storage.py", line 221, in probe
result = probe.pfunc(context=self.context, enabled_probes=to_probe)
File "/snap/ubuntu-desktop-installer/939/lib/python3.10/site-packages/probert/storage.py", line 141, in blockdev_probe
blockdev[device['DEVNAME']] = dict(device)
File "/snap/ubuntu-desktop-installer/939/usr/lib/python3/dist-packages/pyudev/device/_device.py", line 945, in __getitem__
return self.properties.__getitem__(prop)
File "/snap/ubuntu-desktop-installer/939/usr/lib/python3/dist-packages/pyudev/device/_device.py", line 1068, in __getitem__
return ensure_unicode_string(value)
File "/snap/ubuntu-desktop-installer/939/usr/lib/python3/dist-packages/pyudev/_util.py", line 64, in ensure_unicode_string
value = value.decode(sys.getfilesystemencoding())
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc9 in position 0: invalid continuation byte
I've opened an issue in pyudev upstream with steps to reproduce and a potential change to implement: https://github.com/pyudev/pyudev/issues/490
[Workaround]
* Use fdisk (or similar tool) to remove the accents and special characters from the partition names of all visible block devices. If using fdisk, you need to enter "expert" mode by pressing 'x', edit the name by pressing 'n' and return to main menu by pressing 'r'. It is recommended to backup the partition table before editing the name. |
|
2023-04-27 07:29:37 |
Olivier Gayot |
subiquity: status |
New |
In Progress |
|
2023-04-27 07:29:41 |
Olivier Gayot |
subiquity: assignee |
|
Olivier Gayot (ogayot) |
|
2023-05-09 13:12:47 |
Olivier Gayot |
merge proposal linked |
|
https://code.launchpad.net/~ogayot/curtin/+git/curtin/+merge/442225 |
|
2023-05-09 13:13:09 |
Olivier Gayot |
summary |
PARTNAME with accents and other characters outside ASCII range make probert storage runs fail |
PARTNAME with accents and other characters outside ASCII range make curtin and probert and storage runs fail |
|
2023-05-25 14:14:16 |
Olivier Gayot |
subiquity: status |
In Progress |
Fix Committed |
|
2023-10-12 13:23:22 |
Olivier Gayot |
subiquity: status |
Fix Committed |
Fix Released |
|