growpart: Fails for disk symlinks (e.g. /dev/disk/by-id)
Bug #1744406 reported by
Kevin Locke
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-utils |
Fix Released
|
Low
|
Unassigned |
Bug Description
When growpart is called on a disk symlink, it fails with an error similar to the following:
# growpart /dev/disk/
FAILED: failed to get start and end for /dev/disk/
This occurs because the partition device path in /dev/disk/by-id is to add "-part1" rather than just "1" so the awk expression for finding the partition start/end does not find the partition.
Thanks,
Kevin
P.S. I have a fix which will be sent in a merge request shortly.
Related branches
lp:~kevinoid/cloud-utils/fix-growpart-disk-symlink
- Registry Administrators: Pending requested
-
Diff: 19 lines (+9/-0)1 file modifiedbin/growpart (+9/-0)
Changed in cloud-utils: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in cloud-utils: | |
status: | Confirmed → Fix Committed |
To post a comment you must log in.
This bug is believed to be fixed in cloud-utils in version 0.31. If this is still a problem for you, please make a comment and set the state back to New
Thank you.