[Resolvconf-devel] Bug#749405: Bug#749405: resolvconf: /etc/resolvconf/run/interface either does not exist or is not a directory

Edward Allcutt edward at allcutt.me.uk
Mon Jun 2 10:31:42 UTC 2014


> Beck, Andre [2014-06-01 16:24 +0200]:
>> Pondering this a bit more, I've changed my copy in /etc/systemd/system
>> to now read
>>
>> WantedBy=sysinit.target
>>
>> as this is reflecting better where Debian has placed networking and
>> resolvconf traditionally - in rcS.d.

Right, agreed.

> The attached debdiff adjusts the WantedBy and cleans up the symlinks
> on upgrade. It's not actively harmful to have two, but it might look a
> bit confusing. Note that "systemctl reenable" also works when systemd
> is not running, thus the postinst only checks if the systemctl command
> exists.

I think the additional explicit Before=networking.service (and possibly 
others) is also necessary since networking is also ordered before 
sysinit.target.

Thinking about it slightly more, what is really needed (for the 
networking/ifupdown case) is to ensure that resolvconf.service is started 
before any invocation of ifup, including by hotplugging/udev.

As far as I can work out, even with sysv-rc there's a potential race for 
hotplugged interfaces to be started before the resolvconf init script. Has 
this already been solved somehow? Does ifupdown defer hotplugged 
configuration until after the networking script? I can't see any such 
mechanism..

There used to be an ifupdown(.sh?) init script but I can't remember 
precisely what that did.

-- 
Edward Allcutt



More information about the Resolvconf-devel mailing list