From 675e5bf8efaefc2769c74dd2576f49ac5dc6437d Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Wed, 27 Nov 2019 16:23:23 +0100 Subject: gen_determineargs.sh: determine_real_args(): Create kernel module group for additional modules This is needed to get modules, used by genkernel features, like bcache module which is used by "dobcache" feature, into initramfs. Signed-off-by: Thomas Deutschmann --- gen_determineargs.sh | 9 +++++++++ gen_moddeps.sh | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gen_determineargs.sh b/gen_determineargs.sh index 6326a5e6..a5bebd5e 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -787,6 +787,10 @@ determine_real_args() { if isTrue "${BUILD_RAMDISK}" then + # Internal module group to get modules used in genkernel features + # into initramfs. + GK_INITRAMFS_ADDITIONAL_KMODULES="" + if [[ "${CMD_BOOTFONT}" != "none" ]] then if [[ "${CMD_BOOTFONT}" == "current" ]] @@ -851,6 +855,11 @@ determine_real_args() { fi fi + if isTrue "${BCACHE}" + then + GK_INITRAMFS_ADDITIONAL_KMODULES+=" bcache" + fi + if isTrue "${ZFS}" then if isTrue "$(tc-is-cross-compiler)" diff --git a/gen_moddeps.sh b/gen_moddeps.sh index 1664c335..5e6c9809 100755 --- a/gen_moddeps.sh +++ b/gen_moddeps.sh @@ -9,7 +9,7 @@ gen_dep_list() { rm -f "${TEMP}/moddeps" >/dev/null local group_modules - for group_modules in ${!MODULES_*} + for group_modules in ${!MODULES_*} GK_INITRAMFS_ADDITIONAL_KMODULES do gen_deps ${!group_modules} done -- cgit v1.2.3-65-gdbad