summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2020-05-20 14:50:48 +0200
committerDave Reisner <dreisner@archlinux.org>2020-05-20 15:48:25 +0200
commitab34e08b4624d1a212b66cc0f2c0a2c5b9feb325 (patch)
tree8a6e7c40b4b5d971e1bf601acde34c766c1a5c01
parentc9544f97258858587958654f0b000937b2f62354 (diff)
downloadmkinitcpio-ab34e08b4624d1a212b66cc0f2c0a2c5b9feb325.tar.gz
mkinitcpio-ab34e08b4624d1a212b66cc0f2c0a2c5b9feb325.tar.xz
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.
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
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