Here is a patch for udev-start.sh which adds two new configuration variables for better control of udevtrigger (>=0.99) coldplugging: * RC_UDEVTRIGGER_ATTR_EXCLUDE is to define rules to exclude some events using some "--attr-nomatch=" options. I use it to exclude my wifi card, because i don't really need it and it sucks my laptop battery when the driver is loaded. * RC_UDEVTRIGGER_SUBSYSTEM_EXCLUDE is the same but for "--subsystem-nomatch=". I don't use this one, but i thought it would be more coherent to have it too. I will also attach a patch to document this variables in /etc/conf.d/rc. It's not that i like it that much to put some udev specific stuffs in a baselayout config file, but i don't see where else it could go. And anyway, that's where RC_DEVICE_TARBALL was set too, so i guess it's okay.
Created attachment 98515 [details, diff] udev-start-trigger-exclude.patch The patch for udev-start.sh...
Created attachment 98516 [details, diff] rc-confd-trigger-exclude.patch ...and the one for /etc/conf.d/rc.
We now support the different options in the udev startup script, so these patches are no longer needed.
(In reply to comment #3) > We now support the different options in the udev startup script I have synced and updated udev to 103, but can't find where what i was after (excluding a particular device from coldplugging) is supported. Actually, it seems you are still using the udev-start.sh of version 99, which is the one this patch was made against, and which only offers the --attr-match=dev option. Is there something i've not seen/understood? Thanks.