mdadm generates incorrect config if array name contains whitespace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
System: Acer S5-391
Contains two flash drives configured as (Intel) fakeraid. mdadm correctly detects that this array exists, and shows (apparently) correct metadata for both the overall array and the individual disks.
However, the name of the raid array contains spaces, and the /etc/mdadm/
I assume it uses the output of something like `mdadm --examine --scan`, which yields
ARRAY metadata=imsm UUID=<uuid>
ARRAY /dev/md/Aspire S5-391 container=<uuid> member=0 UUID=<uuid>
Subsequently attempting to assemble the array then gives an error that the second ARRAY line is invalid (treating /dev/md/Aspire and S5-391 as separate arguments).
This can be corrected manually by adding quotation marks around "/dev/md/Aspire S5-391" in /etc/mdadm/