From: Matthew Burgess <matthew@linuxfromscratch.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: udevadm: trigger --type=failed deprecation
Date: Wed, 03 Aug 2011 09:09:26 +0000 [thread overview]
Message-ID: <d5a7f5fe344497c640c3937abf671944@quantum.linuxfromscratch.org> (raw)
On Wed, 3 Aug 2011 01:38:45 +0200, Kay Sievers <kay.sievers@vrfy.org> wrote:
> On Wed, Aug 3, 2011 at 00:01, Matthew Burgess
> <matthew@linuxfromscratch.org> wrote:
>> So, Udev-173 added a log message warning us that 'udevadm trigger
>> --typeúiled' is deprecated, which over in LFS we use in a 'udev_retry'
>> bootscript in an attempt to retry failed events, for example those
> caused by
>> slow device initialization.
>
> What is a 'slow' device? RUN+= needs to be explicitly marked to 'fail'
> events. What kind of rules do you exactly have there that tells RUN+> to mark it as failed if needed?
Good question. We try to stick as closely as possible to upstream's rules.
We only create 2 rules files in addition to those installed by your releases
which are:
--- Begin 55-lfs.rules ---
# /etc/udev/rules.d/55-lfs.rules: Rule definitions for LFS.
# Core kernel devices
# This causes the system clock to be set as soon as /dev/rtc becomes available.
SUBSYSTEM="rtc", ACTION="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start"
KERNEL="rtc", ACTION="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start"
# Comms devices
KERNEL="ippp[0-9]*", GROUP="dialout"
KERNEL="isdn[0-9]*", GROUP="dialout"
KERNEL="isdnctrl[0-9]*", GROUP="dialout"
KERNEL="dcbri[0-9]*", GROUP="dialout"
--- End 55-lfs.rules ---
and 70-persistent-net.rules which is generated by following the instructions
at http://www.linuxfromscratch.org/lfs/view/development/chapter07/network.html.
I have a suspicion that the rtc rule could fail if a user had /var as a separate
partition, and /dev/rtc was created before the /var partition had been mounted
(the setclock script calls out to hwclock, which requires /var/lib/hwclock/adjtime).
Our initscripts in question are S10udev and S40mountfs, so I guess this is
theoretically possible.
Do you agree with the above analysis, and if so what do I need to do to fix this?
I could just remove the RUN+= from the rtc rule, and have setclock be an initscript
that starts after S40mountfs. I think we used to have things configured this way, but
moved to the RUN+= method a while ago.
Aside from that issue, is there a way to ask udev to print all failed events, as opposed
to retrying them. As LFS is a fairly minimal system, I'm concerned that users may end up
creating or installing bootscripts that have similar issues, so having a way of printing
failed events would be a useful first step in diagnosing their issues.
Thanks,
Matt.
next reply other threads:[~2011-08-03 9:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-03 9:09 Matthew Burgess [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-08-02 22:01 udevadm: trigger --type=failed deprecation Matthew Burgess
2011-08-02 23:38 ` Kay Sievers
2011-08-04 20:55 ` 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=d5a7f5fe344497c640c3937abf671944@quantum.linuxfromscratch.org \
--to=matthew@linuxfromscratch.org \
--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).