instmods(): fixed "instmods =drivers/md"
parent
3508cc816e
commit
6568d86aec
|
@ -387,8 +387,7 @@ instmods() {
|
||||||
[[ $no_kernel = yes ]] && return
|
[[ $no_kernel = yes ]] && return
|
||||||
local mod mpargs modpath modname cmd
|
local mod mpargs modpath modname cmd
|
||||||
while (($# > 0)); do
|
while (($# > 0)); do
|
||||||
mod=${1##*/}
|
mod=${1%.ko}
|
||||||
mod=${mod%.ko}
|
|
||||||
case $mod in
|
case $mod in
|
||||||
=*) # This introduces 2 incompatible meanings for =* arguments
|
=*) # This introduces 2 incompatible meanings for =* arguments
|
||||||
# to instmods. We need to decide which one to keep.
|
# to instmods. We need to decide which one to keep.
|
||||||
|
@ -400,12 +399,16 @@ instmods() {
|
||||||
instmods $mpargs $(find "$srcmods" -path "*/${mod#=}/*")
|
instmods $mpargs $(find "$srcmods" -path "*/${mod#=}/*")
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
--*) mpargs+=" $mod";;
|
--*)
|
||||||
|
mod=${mod##*/}
|
||||||
|
mpargs+=" $mod";;
|
||||||
i2o_scsi)
|
i2o_scsi)
|
||||||
# Must never run this diagnostic-only module
|
# Must never run this diagnostic-only module
|
||||||
shift; continue;
|
shift; continue;
|
||||||
;;
|
;;
|
||||||
*) # if we are already installed, skip this module and go on
|
*)
|
||||||
|
mod=${mod##*/}
|
||||||
|
# if we are already installed, skip this module and go on
|
||||||
# to the next one.
|
# to the next one.
|
||||||
[[ -f $initdir/$1 ]] && { shift; continue; }
|
[[ -f $initdir/$1 ]] && { shift; continue; }
|
||||||
# If we are building a host-specific initramfs and this
|
# If we are building a host-specific initramfs and this
|
||||||
|
|
Loading…
Reference in New Issue