From b6405a630ba0a738837ee4ca1b37fe3141494d21 Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Mon, 25 May 2009 17:01:21 -0500 Subject: [PATCH] Fix potential bug that might cause us to load the wrong module in case the module names are too similar. --- dracut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut b/dracut index e81bc55..942c420 100755 --- a/dracut +++ b/dracut @@ -122,7 +122,7 @@ check_modules #source our modules. for moddir in "$dsrc/modules.d"/[0-9][0-9]*; do mod=${moddir##*/}; mod=${mod#[0-9][0-9]} - strstr "$mods_to_load" "$mod" && . "$moddir/install" + strstr "$mods_to_load" " $mod " && . "$moddir/install" done unset moddir -- 2.7.4