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.
signature.asc
Description: This is a digitally signed message part