On Thursday 21 August 2008 09:38:25 am Kay Sievers wrote:
Sorry, I should have prefaced my question with "I'm completely ignorant
of this modalias stuff." Is there a "complete idiot's guide to modules
and udev"? There's precious little in Documentation/ other than a bunch
of sample rules for various subsystems.
I'm guessing this has something to do with acpi_device_uevent().
pnp_bus_type has no .uevent method. What if I added one? Would that
help this situation?
It seems wrong for file2alias.c to take every PNP device (even if it's
an ISAPNP or PNPBIOS device) and add "acpi*" aliases for it.
Is this the shell hack you mean (from etc/udev/rules.d/80-drivers.rules
in udev-117)?
SUBSYSTEM=="pnp", DRIVER!="?*", ENV{MODALIAS}!="?*", \
RUN{ignore_error}+="/bin/sh -c '/sbin/modprobe -a $$(while read id; do echo pnp:d$$id; done < /sys$devpath/id)'"
I agree that's gross. Could I fix this by implementing pnp_device_uevent()?
Bjorn
--