Re: [PATCH] omit drivers fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/21/2013 03:44 PM, Dave Young wrote:
> On 08/08/2013 02:05 PM, dyoung@xxxxxxxxxx wrote:
>>
>> 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 <dyoung@xxxxxxxxxx>
>> ---
>>  dracut-functions.sh |    3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> --- dracut.orig/dracut-functions.sh
>> +++ dracut/dracut-functions.sh
>> @@ -1617,7 +1617,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
>> --
>> To unsubscribe from this list: send the line "unsubscribe initramfs" in
>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
> 
> Hi, Harald
> 
> Could you help to review this patch?
> 

Just find it has been merged, cancel the question..


-- 
Thanks
Dave
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux