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

Bug#973733: RTW88_8821ce module fails to find firmware during install and must be reloaded



On Wed, 2020-11-04 at 15:34 +0000, Ben Hutchings wrote:
[...]
> I don't know this part of the installer.  But I think it would be a
> mistake to use a mapping table; instead the installer should look at
> metadata provided by the kernel.  All drivers in a loaded module should
> be listed under /sys/module/<module-name>/drivers, and the installer
> could use that to map a driver name to its module name.

Alternately:

module="$(basename "$(readlink /sys/bus/*/drivers/$driver/module)")"

Some error-checking would be needed.

Ben.

-- 
Ben Hutchings
Humans are not rational beings; they are rationalising beings.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: