From: Harald Hoyer Date: Tue, 20 Aug 2013 07:03:22 +0000 (+0200) Subject: dracut-functions.sh:dracut_module_included() check with spaces X-Git-Tag: 032~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50411d30d5de8e6ffa3f5c12bd37b153fade1534;p=platform%2Fupstream%2Fdracut.git dracut-functions.sh:dracut_module_included() check with spaces check also for surrounding spaces in the module strings --- diff --git a/dracut-functions.sh b/dracut-functions.sh index 68b0a56a..e1159898 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -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.