Skip to contentSkip to conversation

proper way to coldplug with current udev

DISCUSSION Michal Soltys 1 participant 1 message Nov 18, 2010

lore
Share & tools
lore
#0 lore raw

Since v129, there's --type option to use with trigger, and since v152 the default --action is 'change'.

What is the proper, "reference" way to do coldplug now ? Looking into rc scripts of few distros - some of them use both --type (to trigger both 'subsystems' and 'devices') and --action (to force 'add'), some only adjust --type (so: 'devices' + 'new'), some others rely on the defaults ('devices' + 'change').

The most complete form would be something like:

udevadm trigger --type=subsystems --action­d
udevadm settle (is this one necessary ?)
udevadm trigger --typeÞvices --action­d
udevadm settle

And, possibly later - retry any failures with:

udevadm trigger --typeúiled --action­d
udevadm settle