From: Daniel Molkentin Date: Wed, 16 Oct 2019 23:01:47 +0000 (+0200) Subject: dracut-init.sh: remove obsolete for_each_kmod_dep() X-Git-Tag: 050~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4769b332d1a9880362658f648b550668496212f;p=thirdparty%2Fdracut.git dracut-init.sh: remove obsolete for_each_kmod_dep() --- diff --git a/dracut-init.sh b/dracut-init.sh index 0fc463c5b..e6a0ae2a4 100644 --- a/dracut-init.sh +++ b/dracut-init.sh @@ -900,24 +900,6 @@ for_each_module_dir() { done } -# Do something with all the dependencies of a kernel module. -# Note that kernel modules depend on themselves using the technique we use -# $1 = function to call for each dependency we find -# It will be passed the full path to the found kernel module -# $2 = module to get dependencies for -# rest of args = arguments to modprobe -# _fderr specifies FD passed from surrounding scope -for_each_kmod_dep() { - local _func=$1 _kmod=$2 _cmd _modpath _options - shift 2 - modprobe "$@" --ignore-install --show-depends $_kmod 2>&${_fderr} | ( - while read _cmd _modpath _options || [ -n "$_cmd" ]; do - [[ $_cmd = insmod ]] || continue - $_func ${_modpath} || exit $? - done - ) -} - dracut_kernel_post() { for _f in modules.builtin.bin modules.builtin modules.order; do [[ -e $srcmods/$_f ]] && inst_simple "$srcmods/$_f" "/lib/modules/$kernel/$_f"