From c90eb88f04c6acf621e9682172636fae3d0328ad Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 14 Mar 2017 10:50:26 -0400 Subject: 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. --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-g4f1b