From 2f3df563925324efe3bb8d0cf6dd6f83ab4f534c Mon Sep 17 00:00:00 2001 From: Adel Kara Slimane Date: Tue, 26 Jan 2021 14:24:25 +0100 Subject: [PATCH] Update modprobed-db to new usage (#166) * Update to new usage of modprobed-db * Modprobed-db: take config_expert into account --- linux-tkg-config/prepare | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index dd12ba6..d694c94 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -1166,10 +1166,11 @@ _tkg_srcprep() { read -rp "`echo $' > N/y : '`" CONDITIONMPDB; fi if [[ "$CONDITIONMPDB" =~ [yY] ]] || [ "$_modprobeddb" = "true" ]; then - if [ "$_distro" != "Void" ]; then - sudo modprobed-db recall + if [ "$_config_expert" = "true" ];then + make LSMOD=${HOME}/.config/modprobed.db localmodconfig ${llvm_opt} + else + yes "" | make LSMOD=${HOME}/.config/modprobed.db localmodconfig ${llvm_opt} fi - yes "" | make localmodconfig ${llvm_opt} fi if [ true = "$_config_fragments" ]; then