growpart fails when kernel release has trailing characters
Bug #1881014 reported by
ov2k
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-utils |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The kernel release reported by uname -r is not always purely numeric (e.g., 5.4.0-31-generic). The kver_to_num() function in growpart assumes the release component is purely numeric.
When the kernel release is 4.19.97+, the following error is reported:
/usr/bin/growpart: 506: /usr/bin/growpart: arithmetic expression: expecting primary: "4*1000*
Stripping trailing characters should be sufficient. Patch attached.
Changed in cloud-utils: | |
status: | New → Triaged |
Changed in cloud-utils: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
https:/ /bugs.launchpad .net/cloud- utils/+ bug/1881014