Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upuse /etc/NetworkManager/conf.d snippet instead of /etc/NetworkManager/NetworkManager.conf to avoid dpkg interactive conflict resolution dialog questions #1176
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 7, 2015
Member
Not recently, some time ago (Fedora 18? earlier?) adding plugins from
there didn't worked.
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
Not recently, some time ago (Fedora 18? earlier?) adding plugins from Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 8, 2015
Member
How do I test if the keyfile plugin is functional? I cleared /etc/NetworkManager/system-connections/*, but the file in that folder is never regenerated for me even without config files changes.
|
How do I test if the |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 8, 2015
Member
sudo journalctl -b | grep NetworkManager | grep plugin
Sep 07 17:44:16 sys-net NetworkManager[536]: Loaded plugin keyfile: (c) 2007 - 2013 Red Hat, Inc. To report bugs please use the NetworkManager mailing list.
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 8, 2015
Member
On Tue, Sep 08, 2015 at 05:53:01AM -0700, Patrick Schleizer wrote:
How do I test if the
keyfileplugin is functional? I cleared/etc/NetworkManager/system-connections/*, but the file in that folder is never regenerated for me even without config files changes.
It should be generated (and used) if you enable network-manager service
(using qvm-service). It is generated in VMs with uplink in other VMs
(ProxyVM, AppVM).
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
On Tue, Sep 08, 2015 at 05:53:01AM -0700, Patrick Schleizer wrote:
It should be generated (and used) if you enable network-manager service Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 8, 2015
Member
For testing purposes, I have
- copied the original
/etc/NetworkManager/NetworkManager.confto/etc/NetworkManager/conf.d/30-qubes.conf - cleared contents of
/etc/NetworkManager/NetworkManager.conf(to##) for testing purposes.
Toggling
[main]
plugins=keyfile
vs
#[main]
#plugins=keyfile
does influence whether the keyfile pluing gets load as per log or not.
|
For testing purposes, I have
Toggling
vs
does influence whether the keyfile pluing gets load as per log or not. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Sep 8, 2015
Member
A suggestion on how the implementation can be improved and this ticket can be fixed.
/etc/NetworkManager/NetworkManager.conf:
- Don't touch, modifications by users only.
/etc/NetworkManager/conf.d/30-qubes-static.conf:
- Managed by the package management.
- Might in future receive changes if ever needed.
- Contents:
## Please use "/etc/NetworkManager/conf.d/50-user.conf"
## for your custom configurations.
## When Qubes is updated, this file may be overwritten.
[main]
plugins=keyfile
/etc/NetworkManager/conf.d/31-qubes-autogenerated.conf:
- Not managed by the package management.
- Therefore unlikely to cause interactive questions during upgrade by the package manager.
- Contents:
## Please use "/etc/NetworkManager/conf.d/50-user.conf"
## for your custom configurations.
## This file is auto generated by Qubes. Modifications may
## be overwritten.
[keyfile]
unmanaged-devices=mac:fe:ff:ff:ff:ff:ff
Alternatively there could also be just one auto generated file that contains it all, that is not managed by the package manager.
What do you think?
|
A suggestion on how the implementation can be improved and this ticket can be fixed.
Alternatively there could also be just one auto generated file that contains it all, that is not managed by the package manager. What do you think? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 8, 2015
Member
Two files approach seems better. I wonder would happen if
unmanaged-devices would be specified in both NetworkManager.conf and
/etc/NetworkManager/conf.d/31-qubes-autogenerated.conf.
BTW it whould be plugins+=keyfile. I wonder if NetworkManager on
Debian is new enough to support this syntax...
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
Two files approach seems better. I wonder would happen if BTW it whould be Best Regards, |
added a commit
to adrelanos/Whonix
that referenced
this issue
Sep 9, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Oct 6, 2015
Member
Since we generate proper NM configuration for eth0 in VMs ('qubes-uplink-eth0'
connection), that generated part is no longer needed. Which simplifies things here :)
|
Since we generate proper NM configuration for eth0 in VMs ('qubes-uplink-eth0' |
marmarek
closed this
in
marmarek/old-qubes-core-agent-linux@6c48313
Oct 6, 2015
marmarek
added
enhancement
C: core
C: templates
P: minor
labels
Oct 11, 2015
marmarek
added this to the Release 3.1 milestone
Oct 11, 2015
marmarek
reopened this
Nov 28, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 28, 2015
Member
Unfortunately it doesn't work. It looks like unmanaged devices list setting is ignored in /etc/NetworkManager/conf.d, but exactly the same line in main config file works. Needs further investigation. But for now I'm reverting the change.
|
Unfortunately it doesn't work. It looks like unmanaged devices list setting is ignored in |
adrelanos commentedSep 7, 2015
Writing to
/etc/NetworkManager/NetworkManager.confdirectly is problematic:Related code,
qubes-core-agent-linux/debian/qubes-core-agent.postinst:Did you already try if dropping a snippet into
/etc/NetworkManager/conf.dwould do?