summaryrefslogtreecommitdiff
path: root/dracut-functions
diff options
context:
space:
mode:
Diffstat (limited to 'dracut-functions')
-rwxr-xr-xdracut-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/dracut-functions b/dracut-functions
index 134ad3c..ca35eaf 100755
--- a/dracut-functions
+++ b/dracut-functions
@@ -449,7 +449,7 @@ for_each_kmod_dep() {
# If it is not, we will look at all kernel modules
# This function returns the full filenames of modules that match $1
filter_kernel_modules () (
- if [[ $hostonly = '' ]]; then
+ if ! [[ $hostonly ]]; then
filtercmd='find "$srcmods/kernel/drivers" -name "*.ko"'
else
filtercmd='cut -d " " -f 1 </proc/modules|xargs modinfo -F filename -k $kernel'