From 321fa7f59c8b16e6be34bc76732dffc522dd9445 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 30 Sep 2012 13:48:03 -0400 Subject: ensure builtins are dash/underscore translated Signed-off-by: Dave Reisner --- mkinitcpio | 6 ++++-- 1 file 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 -- cgit v1.2.3-24-g4f1b