summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkinitcpio6
1 files changed, 4 insertions, 2 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 76acc33..5baf5d2 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -407,9 +407,11 @@ trap '(( $? )) && [[ $FUNCNAME = add_* ]] && (( ++_builderrors ))' RETURN
# prime the _addedmodules list with the builtins for this kernel
if [[ -r $_d_kmoduledir/modules.builtin ]]; then
- while read -a path; do
- _addedmodules["${path[-1]%.ko}"]=2
+ while IFS=/ read -a path; do
+ modname=${path[-1]%.ko}
+ _addedmodules["${modname//-/_}"]=2
done <"$_d_kmoduledir/modules.builtin"
+ unset modname path
fi
for hook in "${_hooks[@]}"; do