Added check for --lvm2 and enable lvm2-required modules if they are not enabled alrea...
authorChris Gianelloni <wolf31o2@gentoo.org>
Wed, 25 May 2005 15:02:09 +0000 (15:02 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Wed, 25 May 2005 15:02:09 +0000 (15:02 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@194 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_configkernel.sh

index b82051399d52ceef6eb679c2f8f0675f974f0f35..bbff9da86fad08616dac0da5791b5eed7e7045f2 100644 (file)
@@ -94,4 +94,12 @@ config_kernel() {
 
        # Make sure Ext2 support is on...
        sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_EXT2_FS[ =].*/CONFIG_EXT2_FS=y/g'
+
+       # Make sure lvm2 modules are on if --lvm2
+       if isTrue ${CMD_LVM2}
+       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'
+       fi
 }