dracut-functions.sh:dracut_module_included() check with spaces
authorHarald Hoyer <harald@redhat.com>
Tue, 20 Aug 2013 07:03:22 +0000 (09:03 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 20 Aug 2013 07:04:20 +0000 (09:04 +0200)
check also for surrounding spaces in the module strings

dracut-functions.sh

index 68b0a56ae636e4a8d79de3cb10ee554f53dc4049..e1159898ebf633c283cbd0226706d5b2f48cec88 100755 (executable)
@@ -153,7 +153,7 @@ dracut_need_initqueue() {
 }
 
 dracut_module_included() {
-    [[ "$mods_to_load $modules_loaded" == *$@* ]]
+    [[ " $mods_to_load $modules_loaded " == *\ $*\ * ]]
 }
 
 # Create all subdirectories for given path without creating the last element.