Update modprobed-db to new usage (#166)

* Update to new usage of modprobed-db

* Modprobed-db: take config_expert into account
This commit is contained in:
Adel Kara Slimane 2021-01-26 14:24:25 +01:00 committed by GitHub
parent d2aefb4b7b
commit 2f3df56392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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