diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-05-25 15:02:09 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-05-25 15:02:09 +0000 |
commit | b858859d5d1370f2a8281e9acdaf73cabfec141b (patch) | |
tree | b61c8dda68030a6eb546fed23506ebc379ce24e4 /gen_configkernel.sh | |
parent | Adding back in atp870u to modules_load on x86. (diff) | |
download | genkernel-b858859d5d1370f2a8281e9acdaf73cabfec141b.tar.gz genkernel-b858859d5d1370f2a8281e9acdaf73cabfec141b.tar.bz2 genkernel-b858859d5d1370f2a8281e9acdaf73cabfec141b.zip |
Added check for --lvm2 and enable lvm2-required modules if they are not enabled already in the supplied .config file.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@194 67a159dc-881f-0410-a524-ba9dfbe2cb84
Diffstat (limited to 'gen_configkernel.sh')
-rw-r--r-- | gen_configkernel.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gen_configkernel.sh b/gen_configkernel.sh index b820513..bbff9da 100644 --- a/gen_configkernel.sh +++ b/gen_configkernel.sh @@ -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 } |