On 05/02/2011 05:51 AM, Thomas Bächler wrote:
Am 02.05.2011 06:22, schrieb Dave Reisner:
The settle is actually unnecessary here, as its called as part of the
udev hook.  I don't see a need to call it twice.
https://projects.archlinux.org/mkinitcpio.git/commit/?id=3c6a2fab7e5a347d92bba152dca367fcbfabc3a6

It seems I forgot to add an explanation back then, but there were
problems when aborting while uevents were still active.

On the other hand, I've
notice that dracut makes the call 'udevadm control --stop-exec-queue'
prior to shutting down udevd. Perhaps we should be using that instead?
No idea. We need to prevent races here. What we would need is an atomic
"settle and shut down" that doesn't queue any further events between
settling and the shutdown.

I just Asked to udev author:

----
On 05/02/2011 08:41 AM, Kay Sievers wrote:
On Mon, May 2, 2011 at 05:45, Gerardo Exequiel Pozzi
<[email protected]>  wrote:
Hello Kay

At initramfs stage: what is the best way / order, to stop udev?.

1)
udevadm settle
udevadm info --cleanup-db
udevadm control --exit

2)
udevadm settle
udevadm control --exit
udevadm info --cleanup-db

3)
udevadm control --exit
udevadm info --cleanup-db
Settle is not needed, it's done with --exit. The --cleanup-db should
be after the --exit. So it's 3).

Kay

Thank you!
----

--
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1

Reply via email to