summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Linderud <morten@linderud.pw>2020-02-20 09:44:29 +0100
committerMorten Linderud <morten@linderud.pw>2020-02-20 19:08:36 +0100
commit30dbfc2770cb49cb3babfb750205b126d7d88791 (patch)
tree3bc7ea7c37de94a7440d66273572b45eaf39a8bf
parenta3cb799a8f63186b843db6a57da12d74a9320686 (diff)
downloadmkinitcpio-30dbfc2770cb49cb3babfb750205b126d7d88791.tar.gz
mkinitcpio-30dbfc2770cb49cb3babfb750205b126d7d88791.tar.xz
[functions] Ignore modinfo built-in modules
modinfo have started reporting filenames as "(builtin)" on built-in modules. Ignore these and continue with other modules. Fixes: https://bugs.archlinux.org/task/65564 Introduced in: https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/commit/?id=e7e2cb61fa9f1db3429d91ef6accff549500d268 Signed-off-by: Morten Linderud <morten@linderud.pw>
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index f407c82..1c72b56 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"] == 1 )) && return
+ (( _addedmodules["$target"] > 0 )) && return
while IFS=':= ' read -r -d '' field value; do
case "$field" in