[PKG-OpenRC-Debian] Bug#750559: another circular dependency

heroxbd at gmail.com heroxbd at gmail.com
Fri Oct 3 01:49:19 UTC 2014


The following was what we had in a long IRC discussion.


This is another circular dependency caused by a difference between LSB
script and OpenRC counterpart:

LSB header defines Required-{Start,Stop}, but OpenRC has only one "need"
relation.

In this special case,

hwclock [Required-Stop $local_fs] umountfs
hwclock [X-Start-Before] checkroot
cryptdisks [X-Stop-After] umountfs
cryptdisks [Required-Start] checkroot

So by merging relations of start and stop during the interpretation from
LSB to OpenRC, as what we are doing now, introduces a circular
dependency.

hwclock uses> umountfs after> cryptdisks need> checkroot after> hwclock


hwclock is screwed by itself. It should be started before fsck, because
the latter needs a clock; It should be stoped before umount (from
$local_fs), because it needs to write the clock offset to local
disk. And $local_fs naturally depends on fsck.

Our present method of breaking dependency loops fails in cases like
this.



More information about the OpenRC-devel mailing list