Fix bug 87673. Option passing for dmraid. dodmraid= on the cmdline. sets up /sbin...
authorEric Edgar <rocket@gentoo.org>
Wed, 22 Jun 2005 15:21:35 +0000 (15:21 +0000)
committerEric Edgar <rocket@gentoo.org>
Wed, 22 Jun 2005 15:21:35 +0000 (15:21 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@219 67a159dc-881f-0410-a524-ba9dfbe2cb84

generic/initrd.scripts
generic/linuxrc

index c1f5d1545ea74c5e96141ab0a40407d58029768a..d05ef5ff2b40839e89b1cbd8ecaf31a5c13f9997 100644 (file)
@@ -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
 
index 718e24bdd3e71683b7c11059f9121c3734c84d23..b038066abb2e15de1b921a637a117c1027bcfecb 100644 (file)
@@ -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
          ;;