[Pkg-utopia-maintainers] Bug#743138: Bug#743138: [Needs upstream 0.9.10 release] Please only enable ifupdown plugin when ifupdown installed

Guus Sliepen guus at debian.org
Tue Feb 26 21:10:50 GMT 2019


On Tue, Feb 26, 2019 at 07:24:27PM +0100, Michael Biebl wrote:

> On Sun, 10 Feb 2019 11:03:55 +0100 Andrej Shadura
> <andrew.shadura at collabora.co.uk> wrote:
> 
> > > this is fixed a while ago.
> > > 
> > > Handling of hostname moved from the settings plugin to NMSettings.
> > > Also, hostnamed is supported as one of several options.
> > > 
> > > There were many changes there, so I am not going to hunt down for a particular BZ which fixed this. However, the functionality is now all in https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/src/settings/nm-settings.c
> 
> Andrej, I'm fine with dropping ifupdown from the default NM
> configuration if the ifupdown package is going to ship such a config
> snippet for NM.

Are we talking about /etc/NetworkManager/dispatcher.d/01-ifupdown here?
It seems like a hack to avoid having to update some packages to directly
support NetworkManager. For the long run, it's probably better if we
don't have this dependence on scripts written for ifupdown.

> Once such an ifupdown package is available in the archive, I can drop
> the config from NetworkManager.conf and add a versioned Breaks against
> ifupdown.

I can see why you want to move it to ifupdown, but that would mean that
if you have the situation where the network is fully controlled by
NetworkManager (ie, no or an empty /etc/network/interfaces), and you
have a package that provides an /etc/network/if-*.d script, then your
network configuration will be different depending on whether you have
ifupdown installed or not.

> Bringing Guus into the loop here.
> Someone interested in this issue should probably file a proper bug
> report against the ifupdown package and mark this bug report by it.

Personally, I think the proper solution is to have the few packages that
do use ifupdown hooks that always run when an interface goes up/down,
create hooks for NetworkManager as well.

To ensure only one of the hooks is run, a package that provides hooks
for both NetworkManager and ifupdown can check in the ifupdown hooks if
$METHOD = "NetworkManager", and if so exit without doing anything.

-- 
Met vriendelijke groet / with kind regards,
      Guus Sliepen <guus at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-utopia-maintainers/attachments/20190226/a31e5129/attachment-0001.sig>


More information about the Pkg-utopia-maintainers mailing list