Public bug reported:

distribution: precise
package: partman-auto-raid
file: ./auto-raidcfg
function: create_raid
line: 69

The script tries to figure out what number to use for the md device that
will be created next.  The script searches for all active md devices,
extracts their numbers, sorts them out to pick up the largest numbers
and finally sets the next number to use to "largest number + 1".

The problem here is that the sort operation is on strings rather than
numbers. For example, if we already have two raid devices md9 and md10.
The number 9 will be detect as being the largest active md device
number. Hence the next md device to be created will be assigned number
10, which conflicts with /dev/md10 that already exists. This causes the
auto raid part of installation to fail.

The patch is a one liner which is simply adding the "-n" option to the
sort command.

Cheers,

** Affects: partman-auto-raid (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: debian-installer installation preseed raid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1096220

Title:
  partman-auto-raid can't handle the creation of more than 10 raid
  devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-auto-raid/+bug/1096220/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to