Gentoo Archives: gentoo-commits

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