Package: cloud-utils
Version: 0.29-1

Dear maintainers,

When I invoke 'growpart /dev/sda 1' from un ordinary shell, I get the error: 
'/usr/bin/growpart: 235: /usr/bin/growpart: Illegal number: 48318382080 octets,'

growpart use sfidk and try to extract information from the first line of the 
command:
root@test-debian:~# sfdisk --list --unit=S /dev/sda
Disque /dev/sda : 45 GiB, 48318382080 octets, 94371840 secteurs
[...]

As we can see, it failed to parse it and save "48318382080 octets," instead of 
"48318382080".

If I put the output of sfdisk in english, I don't have the issue:

root@test-debian:~# export LC_ALL=C
root@test-debian:~# sfdisk --list --unit=S /dev/sda
Disk /dev/sda: 45 GiB, 48318382080 bytes, 94371840 sectors
[...]
root@test-debian:~# /usr/bin/growpart /dev/sda 1
48318382080 / 94371840
CHANGED: partition=1 start=2048 old: size=10481664 end=10483712 new: 
size=94369759,end=94371807

Maybe it can be a good idea to just add something like "export LC_ALL=C" at the 
beggining of growpart or to work on the parsing fonction to work with more 
languages?

I'm using a fresh install of Debian Buster (10.0) to do this test.

Regards 
Romain

Reply via email to