diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-08-06 12:10:29 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-08-06 12:10:29 +0000 |
commit | 9c38210c1af6644cdf70a111dbb5f5d98ac9b090 (patch) | |
tree | b37c1a218d66c2867f4d640abf290fb09853e5bc /gen_configkernel.sh | |
parent | Fix incorrect commit (diff) | |
download | genkernel-9c38210c1af6644cdf70a111dbb5f5d98ac9b090.tar.gz genkernel-9c38210c1af6644cdf70a111dbb5f5d98ac9b090.tar.bz2 genkernel-9c38210c1af6644cdf70a111dbb5f5d98ac9b090.zip |
Fixed config parsing for dmraid/lvm2 to only set =m if item is not set. Closing bug #101535.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@301 67a159dc-881f-0410-a524-ba9dfbe2cb84
Diffstat (limited to 'gen_configkernel.sh')
-rw-r--r-- | gen_configkernel.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gen_configkernel.sh b/gen_configkernel.sh index 19139b37..751fe36d 100644 --- a/gen_configkernel.sh +++ b/gen_configkernel.sh @@ -105,14 +105,14 @@ config_kernel() { # 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_MIRROR[ =].*/CONFIG_DM_MIRROR=m/g' + sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_BLK_DEV_DM is.*/CONFIG_BLK_DEV_DM=m/g' + sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_DM_SNAPSHOT is.*/CONFIG_DM_SNAPSHOT=m/g' + sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_DM_MIRROR is.*/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' + sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_BLK_DEV_DM is.*/CONFIG_BLK_DEV_DM=m/g' fi } |