File 0594-Check-SUSE-kernel-module-dependencies-recursively.patch of Package dracut.16003

From 6ead8ad47fa141eca039c45f09805808a5ff7d4d Mon Sep 17 00:00:00 2001
From: Daniel Molkentin <dmolkentin@suse.com>
Date: Mon, 11 Mar 2019 17:35:14 +0100
Subject: [PATCH] Check SUSE kernel module dependencies recursively

This fixes commit f29f334cf1638594f90bbf3e775917c610232785

Reference: bsc#1127891
---
 dracut-init.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dracut-init.sh b/dracut-init.sh
index 65597ffa..74e2086d 100644
--- a/dracut-init.sh
+++ b/dracut-init.sh
@@ -954,7 +954,7 @@ for_each_kmod_dep() {
     for suse_mod_dep in ${suse_mod_deps["${_kmod%.ko*}"]}; do
         _modpath=$(modinfo -k "$kernel" -F filename "$suse_mod_dep" 2> /dev/null)
         [ -n "$_modpath" ] || continue
-        for_each_kmod_dep "$_func" "$_modpath" "$@"
+        for_each_kmod_dep "$_func" $(basename "${_modpath%.ko*}") "$@"
         $_func ${_modpath} || exit $?
     done
 }
-- 
2.16.4

openSUSE Build Service is sponsored by