Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:experimental commit in: defaults/
Date: Thu, 24 Feb 2011 09:36:09
Message-Id: 665c3ecff6cb6584ef1c0a3eb867acc5ea3944e3.sping@gentoo
1 commit: 665c3ecff6cb6584ef1c0a3eb867acc5ea3944e3
2 Author: Peter Hjalmarsson <xake <AT> rymdraket <DOT> net>
3 AuthorDate: Wed Feb 23 06:14:04 2011 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 24 09:27:12 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=665c3ecf
7
8 Do not mess with MDADMs auto-detect
9
10 Only reason for this logic is to limit what entries in /proc/partitions
11 mdadm scans for arrays.
12 However this seems to break raids in containers (example Intel fakeraids)
13 as those containers are never scanned for arrays.
14 (On my system it activates /dev/md/imsm0, but never /dev/md/Gentoo_0 which
15 is the real RAID with the removed logic)
16 If someone has something dead-slow they do not want scanned for raids,
17 it is better if they specify their own mdadm.conf.
18 If someone finds an example of something that mdadm scans for arrays that
19 is not supposed to be scanned, we may handle that then.
20
21 ---
22 defaults/initrd.scripts | 5 -----
23 1 files changed, 0 insertions(+), 5 deletions(-)
24
25 diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
26 index f7f01de..dd44429 100755
27 --- a/defaults/initrd.scripts
28 +++ b/defaults/initrd.scripts
29 @@ -621,11 +621,6 @@ startVolumes() {
30
31 if [ "${USE_MDADM}" = '1' ]
32 then
33 - if [ ! -e '/etc/mdadm.conf' ]
34 - then
35 - echo "DEVICE /dev/sd[a-z]* /dev/hd[a-z]*" >/etc/mdadm.conf
36 - /sbin/mdadm --examine --scan >>/etc/mdadm.conf
37 - fi
38 /sbin/mdadm --assemble --scan
39 fi