diff options
-rwxr-xr-x | dracut-functions | 2 |
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; } |