PARTNAME with accents and other characters outside ASCII range make curtin and probert and storage runs fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Fix Released
|
Undecided
|
Olivier Gayot |
Bug 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/
result = probe.pfunc(
File "/snap/
blockdev[
File "/snap/
return self.properties
File "/snap/
return ensure_
File "/snap/
value = value.decode(
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:/
[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.
Related branches
- Dan Bungert: Approve
- Server Team CI bot: Approve (continuous-integration)
- curtin developers: Pending requested
-
Diff: 192 lines (+87/-13)5 files modifiedcurtin/commands/block_meta_v2.py (+22/-1)
curtin/udev.py (+17/-3)
tests/integration/test_block_meta.py (+6/-2)
tests/unittests/helpers.py (+2/-2)
tests/unittests/test_commands_block_meta.py (+40/-5)
description: | updated |
description: | updated |
Changed in subiquity: | |
status: | New → In Progress |
assignee: | nobody → Olivier Gayot (ogayot) |
summary: |
PARTNAME with accents and other characters outside ASCII range make - probert storage runs fail + curtin and probert and storage runs fail |
Changed in subiquity: | |
status: | In Progress → Fix Committed |
Changed in subiquity: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/canonical/ probert/ pull/136