From: dyoung@redhat.com Date: Thu, 8 Aug 2013 06:05:02 +0000 (+0800) Subject: omit drivers fix X-Git-Tag: 032~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=beb26a084794a4bc8baffc8384cb8e41844f89f9;p=platform%2Fupstream%2Fdracut.git omit drivers fix Because omit_drivers list use underline always, so when maching with it the _mod need to be converted as well or sometimes omit-drivers will fail silently. Fix this by replace '-' with '_' in instmods function. Signed-off-by: Dave Young --- diff --git a/dracut-functions.sh b/dracut-functions.sh index fbe06338..6033a1a2 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -1420,7 +1420,8 @@ instmods() { return $_ret fi - if [[ $omit_drivers ]] && [[ "$1" =~ $omit_drivers ]]; then + _mod=${_mod/-/_} + if [[ $omit_drivers ]] && [[ "$_mod" =~ $omit_drivers ]]; then dinfo "Omitting driver ${_mod##$srcmods}" return 0 fi