summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdracut-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/dracut-functions b/dracut-functions
index a1873c5d..c9affc74 100755
--- a/dracut-functions
+++ b/dracut-functions
@@ -657,7 +657,7 @@ instmods() {
[[ -f $initdir/$1 ]] && { shift; continue; }
# If we are building a host-specific initramfs and this
# module is not already loaded, move on to the next one.
- [[ $hostonly ]] && ! grep -q "${mod//-/_}" /proc/modules && \
+ [[ $hostonly ]] && ! grep -qe "\<${mod//-/_}\>" /proc/modules && \
! echo $add_drivers | grep -qe "\<${mod}\>" && {
shift; continue;
}