/run/NetworkManager/conf.d/ files do not override files in /usr/lib/NetworkManager/conf.d

Bug #1614043 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

On upgrades, network-manager creates an empty /etc/NetworkManager/conf.d/10-globally-managed-devices.conf which shadows the one in /usr/lib:

$ strace -fvvs1024 /usr/sbin/NetworkManager --print-config 2>&1|grep 10-globally
access("/etc/NetworkManager/conf.d/10-globally-managed-devices.conf", F_OK) = 0
open("/etc/NetworkManager/conf.d/10-globally-managed-devices.conf", O_RDONLY) = 5
write(1, "# NetworkManager configuration: /etc/NetworkManager/NetworkManager.conf (etc: 10-globally-managed-devices.conf, default-wifi-powersave-on.conf)\n\n[main]\nplugins=ifupdown,keyfile,ofono\ndns=dnsmasq\n\n[ifupdown]\nmanaged=false\n\n[connection]\nwifi.powersave=3\n", 252# NetworkManager configuration: /etc/NetworkManager/NetworkManager.conf (etc: 10-globally-managed-devices.conf, default-wifi-powersave-on.conf)

However, the same does not work for /run:

sudo rm /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
sudo touch /run/NetworkManager/conf.d/10-globally-managed-devices.conf

$ strace -fvvs1024 /usr/sbin/NetworkManager --print-config 2>&1|grep 10-globally
access("/usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf", F_OK) = 0
open("/usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf", O_RDONLY) = 5
access("/var/run/NetworkManager/conf.d/10-globally-managed-devices.conf", F_OK) = 0
open("/var/run/NetworkManager/conf.d/10-globally-managed-devices.conf", O_RDONLY) = 5
write(1, "# NetworkManager configuration: /etc/NetworkManager/NetworkManager.conf (lib: 10-globally-managed-devices.conf) (etc: default-wifi-powersave-on.conf)\n\n[main]\nplugins=ifupdown,keyfile,ofono\ndns=dnsmasq\n\n[keyfile]\nunmanaged-devices=*,except:type:wifi,except:type:wwan\n\n[ifupdown]\nmanaged=false\n\n[connection]\nwifi.powersave=3\n", 323# NetworkManager configuration: /etc/NetworkManager/NetworkManager.conf (lib: 10-globally-managed-devices.conf) (etc: default-wifi-powersave-on.conf)

Thus "unmanaged-devices" is still excluding eveyrthing but wifi/wwan, i. e. per the original /usr/lib/ config.

network-manager version 1.2.2-0ubuntu6

Martin Pitt (pitti)
description: updated
Changed in network-manager (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Martin Pitt (pitti)
milestone: none → ubuntu-16.08
Martin Pitt (pitti)
Changed in network-manager (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package network-manager - 1.2.2-0ubuntu7

---------------
network-manager (1.2.2-0ubuntu7) yakkety; urgency=medium

  [ Martin Pitt ]
  * debian/NetworkManager.conf: Re-Drop "dns=dnsmasq" option again, resolved
    now does DNS requests on port 53 so that chrome and other NSS deniers
    work.
  * debian/network-manager.postinst: Fix conf.d path with mkdir.
  * Make /run/NetworkManager/conf.d/* files override corresponding ones in
    /usr/lib/. (LP: #1614043)
  * Move libgnutls-dev build dependency (which does not exist any more) to
    libgnutls28-dev.

  [ Aron Xu ]
  * Fix invalid nmcli options in bug report script (LP: #1582803)

 -- Martin Pitt <email address hidden> Wed, 17 Aug 2016 12:55:29 +0200

Changed in network-manager (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.