summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkinitcpio7
1 files changed, 7 insertions, 0 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 5ea02dd..bdeaa74 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -343,6 +343,13 @@ declare -i builderrors=0
set -o functrace
trap '(( $? )) && [[ $FUNCNAME = add_* ]] && (( ++builderrors ))' RETURN
+# prime the ADDED_MODULES list with the builtins for this kernel
+if [[ -r $MODULEDIR/modules.builtin ]]; then
+ while read -a path; do
+ ADDED_MODULES["${path[-1]%.ko}"]=1
+ done <"$MODULEDIR/modules.builtin"
+fi
+
for hook in "${hooks[@]}"; do
run_build_hook "$hook" || (( ++builderrors ))
done