From 52f74c80101a4bfcd0993e3e110bef9c6d106743 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 20 Jul 2012 13:10:58 +0200 Subject: [PATCH] dracut-functions.sh: fixed host-only kernel module bug --- dracut-functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dracut-functions.sh b/dracut-functions.sh index 7fa92357..6358078b 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -1296,8 +1296,8 @@ find_kernel_modules_by_path () ( ( cd /sys/module; echo *; ) \ | xargs -r modinfo -F filename -k $kernel 2>/dev/null \ | while read a; do - [[ $a = kernel*/$1/* ]] || continue - echo $srcmods/$a + [[ $a = */kernel*/$1/* ]] || continue + echo $a done fi return 0