]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
should_source_module(): refined check
authorHarald Hoyer <harald@redhat.com>
Thu, 27 Aug 2009 10:52:24 +0000 (12:52 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 27 Aug 2009 10:53:38 +0000 (12:53 +0200)
Do not bail out early if no install exists.
Check also for installkernel.

dracut-functions

index 6f57275aed8d5ed86f50aba5913f166caf618e92..4cc729747bd5860b2daeeee583cb7251182b09cc 100755 (executable)
@@ -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