Bug#826366: [Pkg-utopia-maintainers] Bug#826366: network-manager: does not remove resolv.conf symlink on package removal
On Sun, Jun 05, 2016 at 11:44:35PM +0200, Michael Biebl wrote: > Hi Julian Hi Michael, > Am 05.06.2016 um 01:56 schrieb Julian Gilbey: > > [...] > > > > So when network-manager shuts down, it should revert /etc/resolv.conf > > to a regular file. This should also be checked when the package is > > removed (and unarguably when the package is purged). > > I'm not convinced replacing /etc/resolv.conf on stop is a good idea, so > I won't do that. > [...] Interesting point. As /var/run/NetworkManager/resolv.conf still exists after stop, it would be OK. But if the machine is then rebooted with network-manager still disabled, the problem resurfaces. Question: If the symlink is reverted to an empty file on stop, but the /var/run version is kept intact, would NM pick it up again on restart, just by recreating the symlink? Or does NM recreate the /var/run version on startup anyway? If either of these are the case, then it seems that it would be fine to revert /etc/resolv.conf on stop, as it should have no bad effects (and possibly some good ones). Incidentally, it seems as though NM obliterates any previously existing resolv.conf when it is first run, so there is no hope of reinstating the previous version. This does not seem ideal, either. Best wishes, and thanks for your quick response. Julian
Bug#826366: [Pkg-utopia-maintainers] Bug#826366: network-manager: does not remove resolv.conf symlink on package removal
Am 05.06.2016 um 23:57 schrieb Christoph Anton Mitterer: > On Sun, 2016-06-05 at 23:44 +0200, Michael Biebl wrote: >> On remove/purge yes, it makes sense to turn it back into a real file > > but probably only if it's really a symlink to the path used by NM,.. > not e.g. when it's the one from resolvconf? Sure, "$(readlink /etc/resolv.conf)" = /var/run/NetworkManager/resolv.conf would be the test -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? signature.asc Description: OpenPGP digital signature
Bug#826366: [Pkg-utopia-maintainers] Bug#826366: network-manager: does not remove resolv.conf symlink on package removal
On Sun, 2016-06-05 at 23:44 +0200, Michael Biebl wrote: > On remove/purge yes, it makes sense to turn it back into a real file but probably only if it's really a symlink to the path used by NM,.. not e.g. when it's the one from resolvconf? Cheers, Chris. smime.p7s Description: S/MIME cryptographic signature
Bug#826366: [Pkg-utopia-maintainers] Bug#826366: network-manager: does not remove resolv.conf symlink on package removal
Hi Julian Am 05.06.2016 um 01:56 schrieb Julian Gilbey: > I have been having some problems with network-manager recently (as > reported in another bug report), so I thought I'd try out wicd > instead. I purged NM and the related packages, but wicd would not > work. I tracked down the reason: /etc/resolv.conf was still symlinked > to the now non-existent file /var/run/NetworkManager/resolv.conf > > So when network-manager shuts down, it should revert /etc/resolv.conf > to a regular file. This should also be checked when the package is > removed (and unarguably when the package is purged). I'm not convinced replacing /etc/resolv.conf on stop is a good idea, so I won't do that. On remove/purge yes, it makes sense to turn it back into a real file (I'll probably just make it an empty one), since other tools expect it to be a file and behave differently if it's a symlink. Regards, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? signature.asc Description: OpenPGP digital signature