From: Victor Lowther Date: Mon, 25 May 2009 22:01:21 +0000 (-0500) Subject: Fix potential bug that might cause us to load the wrong module in case X-Git-Tag: 0.1~171 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6405a630ba0a738837ee4ca1b37fe3141494d21;p=thirdparty%2Fdracut.git Fix potential bug that might cause us to load the wrong module in case the module names are too similar. --- diff --git a/dracut b/dracut index e81bc55ac..942c420fe 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