[Pkg-systemd-maintainers] Bug#738965: systemd: Circular dependencies caused by Debian specific handling of runlevel S sysv init scripts.

Jon Severinsson jon at severinsson.net
Fri Feb 21 21:34:36 GMT 2014


control: merge 738965 726027

At Monday 17 February 2014 03:51:15 Michael Biebl wrote:
> For completeness sake: This looks like a duplicate of
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=726027
> which I filed a while ago.

This is indeed a duplicate of #726027, sorry for not noticing it before 
reporting this.

At Friday 14 February 2014 11:57:02 Jon Severinsson wrote:
> Attaching a one-line patch that would solve the systemd part of this
> problem by replacing SPECIAL_SYSINIT_TARGET with SPECIAL_BASIC_TARGET
> at line 4072 in debian/patches/debian-changes. I will follow up with
> a patch to NetworkManager as a separate bug report later.

It turned out that getting NetworkManager to reliably start before 
basic.target was impossible, so there is no follow up bug comming, and my 
patch above will never be part of a complete solution, only mitigation.

At Friday 14 February 2014 14:39:42 Michael Biebl wrote:
> In an ideal world, we'd simply convert all rcS SysV init scripts to
> native .service files. This will take time though.
> 
> My proposal for the meantime would be to replace the $remote_fs
> dependency for rcS style SysV init scripts with $local_fs.

At Friday 14 February 2014 15:59:13 Jon Severinsson wrote:
>In addition to breaking the, presumably rare but valid, case of a script 
>actually needing $remote_fs, it will not solve the problem, as $network will 
>still case breakage.
>
>I guess that additionally using networking.service instead of network.target 
>for $network could work, but I feel that such a solution would be both more 
>complex and more brittle than using basic.service instead of sysinit.service.

I had a go at this, but as noted in #726027, the unit.h abstraction has no 
functions to remove or replace dependencies, so I tried an uggly hack using 
the set.h primitives directly in service.c, but I never got the resulting 
systemd binary to successfully boot, so I must have screwed something up 
pretty badly.

Someone more knowledgable about the systemd internals will have to fix this. 
:-(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140221/552e5128/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list