]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Fix potential bug that might cause us to load the wrong module in case
authorVictor Lowther <victor.lowther@gmail.com>
Mon, 25 May 2009 22:01:21 +0000 (17:01 -0500)
committerVictor Lowther <victor.lowther@gmail.com>
Mon, 25 May 2009 22:01:21 +0000 (17:01 -0500)
the module names are too similar.

dracut

diff --git a/dracut b/dracut
index e81bc55acaf49411948252a91cdaf8811f4e2d67..942c420fe3f41ececb2b46b8cee3dce187c35708 100755 (executable)
--- 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