Hi, On Wed, Aug 24, 2016 at 04:52:44PM +0200, Guillermo Rodriguez Garcia wrote: > I was just playing with some udev rules for automounting USB drives, > and noticed that the rules were working fine when the USB drive was > hot plugged, but not when it was already plugged at boot time. > > After some investigation I found that the reason: At boot time, the > default udev init script in ptxdist (from projectroot/etc/init.d/udev) > calls udevadm trigger in order to "coldplug" devices that have already > been discovered by the time the udev daemon is started. However > udevadm trigger is called without arguments, which is equivalent to > --action=change. Thus udev rules for the "add" action are not > triggered. > > Shouldn't this be changed to udevadm trigger --action=add ? I believe > most Linux distributions out there are using --action=add in their > udev init scripts.
Correct. I never noticed because I've been using systemd exclusively for years now. It would be great if you could send a patch for this. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list [email protected]
