From: Harald Hoyer Date: Thu, 27 Aug 2009 10:52:24 +0000 (+0200) Subject: should_source_module(): refined check X-Git-Tag: 001~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=973c23b0d6ecb68c7d249446cf304e082003d16f;p=thirdparty%2Fdracut.git should_source_module(): refined check Do not bail out early if no install exists. Check also for installkernel. --- diff --git a/dracut-functions b/dracut-functions index 6f57275ae..4cc729747 100755 --- a/dracut-functions +++ b/dracut-functions @@ -295,11 +295,11 @@ check_module_deps() { should_source_module() { local dep - [[ -x $1/install ]] || return 1 if [[ $kernel_only = yes ]]; then [[ -x $1/installkernel ]] && return 0 return 1 fi + [[ -x $1/install ]] || [[ -x $1/installkernel ]] || return 1 [[ -x $1/check ]] || return 0 "$1/check" $hostonly || return 1 for dep in $("$1/check" -d); do