summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2017-03-14 15:50:26 +0100
committerDave Reisner <dreisner@archlinux.org>2017-03-14 15:50:26 +0100
commitc90eb88f04c6acf621e9682172636fae3d0328ad (patch)
tree17820ef9aea7b4102634f4746d2b996bd1b900b2 /functions
parent15cab4d017c7cc46b8234bfa641fcef2b28207b6 (diff)
downloadmkinitcpio-c90eb88f04c6acf621e9682172636fae3d0328ad.tar.gz
mkinitcpio-c90eb88f04c6acf621e9682172636fae3d0328ad.tar.xz
avoid erroring when a builtin-module can't be found
This is harmless fallout from 5249350, which tries harder to re-add aliases of builtins.
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 4afc902..e35a03b 100644
--- a/functions
+++ b/functions
@@ -390,7 +390,7 @@ add_module() {
done < <(modinfo -b "$_optmoduleroot" -k "$KERNELVERSION" -0 "$target" 2>/dev/null)
if (( !found )); then
- (( ign_errors )) && return 0
+ (( ign_errors || _addedmodules["$target"] )) && return 0
error "module not found: \`%s'" "$target"
return 1
fi