2016-08-17 10:32:27 |
Martin Pitt |
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. |
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 |
|