diff --git a/gen_configkernel.sh b/gen_configkernel.sh index bbff9da..e54ed59 100644 --- a/gen_configkernel.sh +++ b/gen_configkernel.sh @@ -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 }