Bug#908796: udev (with sysvinit) fails to find devices at boot

Michael Biebl biebl at debian.org
Sun Oct 7 15:01:18 BST 2018


Am 07.10.18 um 01:57 schrieb Michael Biebl:
> Am 07.10.18 um 01:06 schrieb Michael Biebl:
> 
>> We change the init script as follows:
>> - We revert most the changes from #791944, we only keep the stop
>> symlinks for rc0 and rc6 and the cleanup of /run/udev/control file on stop.
>> - We tweak the LSB headers to make sure the udev init script is called
>> before sendsigs on shutdown. This is important!
>>
>> This should ensure that udevd is properly killed and the control file
>> removed, i.e. there should be (almost) no time window where the udevd
>> daemon is not running but the control file exists.
>>
>> On the other hand, this would mean we again stop udevd earlier during
>> shutdown, but we mostly had this behaviour already in previous releases
>> where udevd is killed by sendsigs.
> 
> I have to add, that this change has the potential to significantly
> change the shutdown order or cause a conflicting ordering, in case there
> are other init scripts which declare an explicit shutdown dependency.

To answer my own question:
Adding "Should-Stop: sendsigs" to udev will not work as it creates a
dependency cycle with cryptdisks and cryptdisks-early (which have
Should-Stop: udev, so require udev to stop *after* themselves).

Trek, what was the problem with checking for /run/udev/control to
determine if the udev service is available or not?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20181007/7c24d317/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list