troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
632 stars 63 forks source link

Support for coldplugging more devices #293

Closed wkz closed 2 years ago

wkz commented 2 years ago

As it turns out, not all buses in Linux will add modalias attributes to their devices in sysfs. One notable exception are MDIO buses. The plugin's scan routine would thus not pick them up.

Fortunately, the information is always available in the device's uevent attribute.

Therefore, default to looking for modaliases in the device's uevent attribute instead, falling back to modalias only if uevent is not availble (this should never happen).

troglobit commented 2 years ago

Awesome work on this, thank you! :heart: