commit: 7ea94b035c91e0edee183522cdeb51810e043b72
Author: Laurence Perkins <lperkins <AT> zagmail <DOT> gonzaga <DOT> edu>
AuthorDate: Fri Mar 29 17:48:05 2019 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Mar 29 21:26:03 2019 +0000
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=7ea94b03
Intel RST/Matrix RAID support
Intel Matrix RAID uses a nested container structure requiring that the array
first be assembled, and then the actual storage volumes be activated.
Signed-Off-By: Laurence Perkins <lperkins <AT> zagmail.gonzaga.edu>
(cherry picked from commit 952ecaffb742fef7422e313af5fa0a4426625e14)
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
defaults/initrd.scripts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index c57f016..5d3a220 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -1074,6 +1074,9 @@ startVolumes() {
if [ -x '/sbin/mdadm' ]
then
/sbin/mdadm --assemble --scan
+ #Intel Matrix RAID (and possibly others) have a
container layer above the actual volumes,
+ #So we have to look for volumes that haven't been
activated.
+ mdadm -IRs
else
bad_msg "mdadm not found: skipping mdadm raid assembly!"
fi