From: Eric Edgar Date: Wed, 22 Jun 2005 15:21:35 +0000 (+0000) Subject: Fix bug 87673. Option passing for dmraid. dodmraid= on the cmdline. sets up /sbin... X-Git-Tag: v3.4.10.902~533 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cdbe36231a69cf08114c1640ca2feb6dd27e194d;p=genkernel.git Fix bug 87673. Option passing for dmraid. dodmraid= on the cmdline. sets up /sbin/dmraid -ay . git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@219 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/generic/initrd.scripts b/generic/initrd.scripts index c1f5d15..d05ef5f 100644 --- a/generic/initrd.scripts +++ b/generic/initrd.scripts @@ -407,9 +407,13 @@ startVolumes() { then if [ -e '/sbin/dmraid' ] then - good_msg "Activating Device-Mapper RAID(s)" - /sbin/dmraid -ay + if [ '${DMRAID_OPTS}' = '' ] + then + /sbin/dmraid -ay + else + /sbin/dmraid -ay ${DMRAID_OPTS} + fi fi fi diff --git a/generic/linuxrc b/generic/linuxrc index 718e24b..b038066 100644 --- a/generic/linuxrc +++ b/generic/linuxrc @@ -107,6 +107,10 @@ do dodmraid) USE_DMRAID_NORMAL=1 ;; + dodmraid\=*) + DMRAID_OPTS=`parse_opt "${x}"` + USE_DMRAID_NORMAL=1 + ;; doevms) USE_EVMS_NORMAL=1 ;;