diff options
author | Harald Hoyer <harald@redhat.com> | 2013-08-20 09:03:22 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-08-20 09:04:20 +0200 |
commit | 50411d30d5de8e6ffa3f5c12bd37b153fade1534 (patch) | |
tree | 6fd6002542fa28835c799ac1502e3c35168f7029 | |
parent | 88c86ac7f0c78f579b09ee31586109c7f68c8298 (diff) | |
download | dracut-50411d30d5de8e6ffa3f5c12bd37b153fade1534.tar.gz dracut-50411d30d5de8e6ffa3f5c12bd37b153fade1534.tar.bz2 dracut-50411d30d5de8e6ffa3f5c12bd37b153fade1534.zip |
dracut-functions.sh:dracut_module_included() check with spaces
check also for surrounding spaces in the module strings
-rwxr-xr-x | dracut-functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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. |