From: Gustavo Zacarias <gustavo@zacarias.com.ar>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/eudev: tweak initscript
Date: Mon, 20 Oct 2014 14:57:55 -0300 [thread overview]
Message-ID: <54454D23.3060608@zacarias.com.ar> (raw)
In-Reply-To: <20141020175408.GJ3742@free.fr>
On 10/20/2014 02:54 PM, Yann E. MORIN wrote:
> Hmmm... This exit won't do much: it exits a sub-shell, so the initscript
> will still continue...
I've focused on fixing the one problem, i didn't audit the whole script.
>> - udevadm trigger --action=add
>> - udevadm settle
>> + udevadm trigger --type=subsystems --action=add
>> + udevadm trigger --type=devices --action=add
>> + udevadm settle --timeout=10
>
> Why did you add a timeout, and not explain it?
>
> Also, are 10 seconds really enough? What happens if a device takes
> longer than 10s to initialise (and it is needed to boot, like a slow
> USB mass-storage) ?
It just seems prudent to avoid a stall, but yeah forgot to mention it,
it's the usual practice in many distros.
You've got rootwait & friends for that, remember this is post mount-root
so it doesn't matter there. And if you're doing initramfs then
switching/pivoting to some other root, well, you're scripting it, you
should take care of it there since you're doing the mount.
Regards.
next prev parent reply other threads:[~2014-10-20 17:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-20 17:45 [Buildroot] [PATCH] package/eudev: tweak initscript Gustavo Zacarias
2014-10-20 17:54 ` Yann E. MORIN
2014-10-20 17:57 ` Gustavo Zacarias [this message]
2014-10-20 18:10 ` Yann E. MORIN
2014-10-20 18:17 ` Gustavo Zacarias
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=54454D23.3060608@zacarias.com.ar \
--to=gustavo@zacarias.com.ar \
--cc=buildroot@busybox.net \
/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