partman-auto-raid fails when there is an 'inactive' raid

Bug #1570123 reported by Shashank Sahni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
partman-auto-raid (Ubuntu)
New
Undecided
Unassigned

Bug Description

The logic that partman-auto-raid uses in raid-autocfg to fetch the current RAID device number(if any), greps for 'active' in /proc/mdstat. In scenarios where an inactive raid exists due to one of the disks(being reused), this greps the entire inactive raid string. As a result, instead of returning the mdraid device number, it fetches the string "md127 : inactive sdj[2](s)" and tries to append it to "/dev/md" and fails creating the requested RAID device.

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.