From ab34e08b4624d1a212b66cc0f2c0a2c5b9feb325 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Wed, 20 May 2020 08:50:48 -0400 Subject: Revert "[functions] Ignore modinfo built-in modules" As reported in https://github.com/archlinux/mkinitcpio/pull/20, this breaks various edge case involving builtins, leading to hardware-accelerated modules to not be added. This reverts commit 30dbfc2770cb49cb3babfb750205b126d7d88791. --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index bc9c528..5094c25 100644 --- a/functions +++ b/functions @@ -371,7 +371,7 @@ add_module() { target=${1%.ko*} target=${target//-/_} # skip expensive stuff if this module has already been added - (( _addedmodules["$target"] > 0 )) && return + (( _addedmodules["$target"] == 1 )) && return while IFS=':= ' read -r -d '' field value; do case "$field" in -- cgit v1.2.3-24-g4f1b