growpart function get_diskpart_path does not handle all block device special correctly

Bug #2069024 reported by Mariani Alberto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-initramfs-tools
New
Undecided
Unassigned

Bug Description

inside function get_diskpart_path of growpart: under the "then" branch of the if for block special devices,

test "${disk%[0-9]}" != "${disk}" does not handle more than 10 partitions per disk

Also, test "${disk#/dev/loop[0-9]}" != "${disk}" does not handle more than 10 loopback devices

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.