diff options
-rwxr-xr-x | mkinitcpio | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |