All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Soltys <soltys@ziu.info>
To: linux-hotplug@vger.kernel.org
Subject: proper way to coldplug with current udev
Date: Thu, 18 Nov 2010 13:26:39 +0000	[thread overview]
Message-ID: <4CE5298F.5030909@ziu.info> (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


                 reply	other threads:[~2010-11-18 13:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CE5298F.5030909@ziu.info \
    --to=soltys@ziu.info \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.