vapier 15/04/04 21:58:34 Modified: mdraid.rc mdraid.confd Log: Add a conf.d setting to pass options to the assemble step #531604 by Adrian. (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Revision Changes Path 1.7 sys-fs/mdadm/files/mdraid.rc file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/files/mdraid.rc?rev=1.7&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/files/mdraid.rc?rev=1.7&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/files/mdraid.rc?r1=1.6&r2=1.7 Index: mdraid.rc =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-fs/mdadm/files/mdraid.rc,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- mdraid.rc 12 Nov 2011 21:06:44 -0000 1.6 +++ mdraid.rc 4 Apr 2015 21:58:33 -0000 1.7 @@ -1,7 +1,7 @@ #!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/files/mdraid.rc,v 1.6 2011/11/12 21:06:44 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/files/mdraid.rc,v 1.7 2015/04/04 21:58:33 vapier Exp $ depend() { before checkfs fsck @@ -12,7 +12,7 @@ local output ebegin "Starting up RAID devices" - output=$(mdadm -As 2>&1) + output=$(mdadm -As ${MDADM_ASSEMBLE_OPTS} 2>&1) eend $? "${output}" local pat="/dev/md_d*" 1.2 sys-fs/mdadm/files/mdraid.confd file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/files/mdraid.confd?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/files/mdraid.confd?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/files/mdraid.confd?r1=1.1&r2=1.2 Index: mdraid.confd =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-fs/mdadm/files/mdraid.confd,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- mdraid.confd 3 Jun 2010 02:05:45 -0000 1.1 +++ mdraid.confd 4 Apr 2015 21:58:33 -0000 1.2 @@ -3,3 +3,9 @@ # For people who run raid on top of some other layer (like # dmcrypt), use rc_need to specify that requirement. See # the runscript(8) man page for more information. + +# Most configuration happens in /etc/mdadm.conf. + +# Pass additional options when assembling raids. +# Note: This applies to all raids. +MDADM_ASSEMBLE_OPTS=""