1 |
commit: ccaffdee5d396bd4756559b7cab4c0bceb6c8b9b |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 26 03:44:25 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 26 07:12:06 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=ccaffdee |
7 |
|
8 |
config_kernel(): rewrite --dmraid handling |
9 |
|
10 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
11 |
|
12 |
gen_configkernel.sh | 5 ++++- |
13 |
1 file changed, 4 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/gen_configkernel.sh b/gen_configkernel.sh |
16 |
index b0faeeb..2bf0cc7 100755 |
17 |
--- a/gen_configkernel.sh |
18 |
+++ b/gen_configkernel.sh |
19 |
@@ -226,9 +226,12 @@ config_kernel() { |
20 |
kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_DM_MULTIPATH" "${cfg_CONFIG_DM_MULTIPATH}" |
21 |
fi |
22 |
|
23 |
- # Make sure dmraid modules are on if --dmraid |
24 |
+ # Make sure dmraid modules are enabled in the kernel, if --dmraid |
25 |
if isTrue "${CMD_DMRAID}" |
26 |
then |
27 |
+ print_info 1 "$(getIndent 1)>> Ensure that required kernel options for DMRAID support are set..." |
28 |
+ kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_BLOCK" "y" |
29 |
+ kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_MD" "y" |
30 |
kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_BLK_DEV_DM" "${cfg_CONFIG_BLK_DEV_DM}" |
31 |
fi |