From: Andrey Borzenkov <arvidjaar@mail.ru>
To: linux-hotplug@vger.kernel.org
Subject: udevadm triggers wrong event type for failed events
Date: Sat, 14 Aug 2010 16:16:09 +0000 [thread overview]
Message-ID: <201008142016.12747.arvidjaar@mail.ru> (raw)
[-- Attachment #1: Type: text/plain, Size: 1164 bytes --]
I was puzzled why my bluetoothd was not started on boot. It turned out
the following:
- bluetoothd requires D-Bus so attempt to start it early (may be, as
early as initrd) fails
- event is saved as failed event; but only device path is preserved, no
information about which event type failed
- later udevadm trigger --type=failed is run; but by default this
triggers "change" event instead of "add". There is no "change" action
for bluetooth subsystem (nor do I think it normally emits such event) so
nothing happens.
This change was introduced relatively recently in
commit 236fae6cf1a619a92174efdf84cd7d91e7d4348d
Author: Kay Sievers <kay.sievers@vrfy.org>
Date: Mon Apr 12 17:56:32 2010 +0200
udevadm: trigger - switch default action from "add" to "change"
Now, I could of course just go and add --action=add to udev-post
initscript. The question is - is it correct to assume that every failed
event is "add"? Should not event type be preserved for later correct re-
trigger?
BTW both init/udev-retry.service from udev GIT and udev-post from Fedora
have the same problem (Mandriva is using Fedora version).
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next reply other threads:[~2010-08-14 16:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-14 16:16 Andrey Borzenkov [this message]
2010-08-15 9:14 ` udevadm triggers wrong event type for failed events Kay Sievers
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=201008142016.12747.arvidjaar@mail.ru \
--to=arvidjaar@mail.ru \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).