From 973c23b0d6ecb68c7d249446cf304e082003d16f Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 27 Aug 2009 12:52:24 +0200 Subject: [PATCH] should_source_module(): refined check Do not bail out early if no install exists. Check also for installkernel. --- dracut-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut-functions b/dracut-functions index 6f57275..4cc7297 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 -- 2.7.4