Wrong parsing of sfdisk output in french locale
Bug #1860479 reported by
pickadi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-utils (Ubuntu) |
Fix Released
|
Medium
|
Paride Legovini |
Bug Description
When using growpart with french locale, one encounters the following error:
"/usr/bin/growpart: 242: /usr/bin/growpart: Illegal number"
The reason is that, at lines 215 and 241, the script parses the output of sfdisk:
215: rqe sfd_list sfdisk --list --unit=S "$DISK" >"$tmp"
241: read _x _x _x _x disk_size _x sector_num _x < "$tmp"
But, with french locale, this output contains non-breaking spaces, so the parsing is wrong.
A workaround is to use "LC_ALL=C growpart", but this should not be necessary.
Changed in cloud-utils: | |
assignee: | nobody → Paride Legovini (paride) |
Changed in cloud-utils: | |
status: | Triaged → Fix Committed |
affects: | cloud-utils → cloud-utils (Ubuntu) |
To post a comment you must log in.
Thanks for reporting this bug. This can be fixed by using `sfdisk --dump`, which is intended to be machine readable.