mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Shouldn't /etc/init.d/udev call udevadm trigger with --action=all ?
@ 2016-08-24 14:52 Guillermo Rodriguez Garcia
  2016-08-25 11:42 ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Guillermo Rodriguez Garcia @ 2016-08-24 14:52 UTC (permalink / raw)
  To: ptxdist

Hello all,

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.

Best,

Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-25 13:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-24 14:52 [ptxdist] Shouldn't /etc/init.d/udev call udevadm trigger with --action=all ? Guillermo Rodriguez Garcia
2016-08-25 11:42 ` Michael Olbrich
2016-08-25 13:27   ` [ptxdist] [PATCH] udev init script should pass --action=add to udevadm trigger Guillermo Rodriguez
2016-08-25 13:30   ` [ptxdist] Shouldn't /etc/init.d/udev call udevadm trigger with --action=all ? Guillermo Rodriguez Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox