Added config parsing for dmraid modules if genkernel is called with --dmraid
authorChris Gianelloni <wolf31o2@gentoo.org>
Thu, 2 Jun 2005 13:56:26 +0000 (13:56 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Thu, 2 Jun 2005 13:56:26 +0000 (13:56 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@195 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_configkernel.sh

index bbff9da86fad08616dac0da5791b5eed7e7045f2..e54ed593366057fc3c15b9fbd105fc3445d65361 100644 (file)
@@ -100,6 +100,12 @@ config_kernel() {
        then
                sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_BLK_DEV_DM[ =].*/CONFIG_BLK_DEV_DM=m/g'
                sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_DM_SNAPSHOT[ =].*/CONFIG_DM_SNAPSHOT=m/g'
-               sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_DM_SNAPSHOT[ =].*/CONFIG_DM_SNAPSHOT=m/g'
+               sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_DM_MIRROR[ =].*/CONFIG_DM_MIRROR=m/g'
+       fi
+
+       # Make sure dmraid modules are on if --dmraid
+       if isTrue ${CMD_DMRAID}
+       then
+               sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_BLK_DEV_DM[ =].*/CONFIG_BLK_DEV_DM=m/g'
        fi
 }