From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Soltys Date: Thu, 18 Nov 2010 13:26:39 +0000 Subject: proper way to coldplug with current udev Message-Id: <4CE5298F.5030909@ziu.info> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Since v129, there's --type option to use with trigger, and since v152=20 the default --action is 'change'. What is the proper, "reference" way to do coldplug now ? Looking into rc=20 scripts of few distros - some of them use both --type (to trigger both=20 'subsystems' and 'devices') and --action (to force 'add'), some only=20 adjust --type (so: 'devices' + 'new'), some others rely on the defaults=20 ('devices' + 'change'). The most complete form would be something like: udevadm trigger --type=3Dsubsystems --action=ADd udevadm settle (is this one necessary ?) udevadm trigger --type=DEvices --action=ADd udevadm settle And, possibly later - retry any failures with: udevadm trigger --type=FAiled --action=ADd udevadm settle