Merge lp:~csurbhi/mdadm/mdadm-fix.728435 into lp:~ubuntu-core-dev/mdadm/ubuntu
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 6 | ||||
Proposed branch: | lp:~csurbhi/mdadm/mdadm-fix.728435 | ||||
Merge into: | lp:~ubuntu-core-dev/mdadm/ubuntu | ||||
Diff against target: |
43 lines (+20/-3) 2 files modified
debian/changelog (+12/-0) debian/initramfs/init-premount (+8/-3) |
||||
To merge this branch: | bzr merge lp:~csurbhi/mdadm/mdadm-fix.728435 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson | Approve | ||
Review via email: mp+54011@code.launchpad.net |
Description of the change
The udev rule for mdadm uses incremental mode to create an array and/or to add member disks to it. The correct way to start such a partially assembled array in degraded is to use the Incremental mode. So, adding the " mdadm --incremental --scan --run " to the mdadm/mountroot
Previously mdadm --assemble --scan --run worked because the arrays were stopped before scan assembling them. Assemble scan mode is good for assembling arrays not created by Incremental mode, when member disks unassociated with any array are available for assembling a *new* array. So keeping the "mdadm --assemble --scan --run" for assembling arrays which were not partially created by Incremental mode. We should ideally not land in a situation where the arrays were not incrementally created. However, should we do (due to udevd failure say), then mdadm --assemble scan will never the less assemble a new array.
Please consider this change for natty.
Thanks for your contribution to Ubuntu!
I've updated lp:~ubuntu-core-dev/mdadm/ubuntu to match the current archive. Please could you merge from that branch, resolve any changelog conflicts, and then re-push to lp:~csurbhi/mdadm/mdadm-fix.728435? (You don't need to file a new merge proposal - this one will update automatically.)
Secondly, patch files in debian/patches/ should only be used when patching upstream source code. When changing files in debian/, you should just change them directly rather than with a patch file. In this case, you should just be able to undo your changes to debian/patches/, since your branch already changes debian/ initramfs/ init-premount as well.
Finally, there are some confusing typos in the changelog - according to mdadm(8), -r is short for --remove while -R is short for --run. As such, I think the two mentions of -Ars should be corrected to -ARs, while the mention of -Irs should be corrected to -IRs.