diff options
author | 2010-08-27 17:26:52 +0200 | |
---|---|---|
committer | 2011-01-17 15:42:07 +0100 | |
commit | daed0ccebb15142265e2634262c474a2ef81201b (patch) | |
tree | bc9a0e8b52e89bfa16602ed2b607286d07f8f161 /defaults | |
parent | docmatcher: Get GnuPG parameters out of the way (diff) | |
download | genkernel-daed0ccebb15142265e2634262c474a2ef81201b.tar.gz genkernel-daed0ccebb15142265e2634262c474a2ef81201b.tar.bz2 genkernel-daed0ccebb15142265e2634262c474a2ef81201b.zip |
use mdadm instead of bundled stripped down mdassemble (v2)
mdassemble can't handle newer metadata formats and fails for partitioned
arrays, among other things.
This...
- replaces the bundled mdassemble with proper support for mdadm
- fixes raid autodetection/assemble when no mdadm.conf is available
- fixes a compilation failure for newer mdadm versions
Tested w/ genkernel 3.4.10.907 and mdadm 3.1.3.
Diffstat (limited to 'defaults')
-rwxr-xr-x | defaults/initrd.scripts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index ce05f4c2..1c7ebf32 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -615,9 +615,10 @@ startVolumes() { then if [ ! -e '/etc/mdadm.conf' ] then - /sbin/mdadm --examine > /etc/mdadm.conf + echo "DEVICE /dev/sd[a-z]* /dev/hd[a-z]*" >/etc/mdadm.conf + /sbin/mdadm --examine --scan >>/etc/mdadm.conf fi - /sbin/mdadm --assemble + /sbin/mdadm -A --scan fi if [ "${USE_DMRAID_NORMAL}" = '1' ] |