| |
@@ -131,7 +131,8 @@
|
| |
elif [ -x /usr/bin/busctl ] && [ ${RESOLVEDENABLED} = 1 ]; then # For systemd-resolved (version 229 and above)
|
| |
MODIFYRESOLVCONF=modify_resolved_manager
|
| |
RESTORERESOLVCONF=restore_resolved_manager
|
| |
- elif [ -x /sbin/resolvconf ]; then # Optional tool on Debian, Ubuntu, Gentoo and FreeBSD
|
| |
+ elif [ -x /sbin/resolvconf -a "$(basename $(readlink /sbin/resolvconf))" != 'resolvectl' ]; then
|
| |
+ # Optional tool on Debian, Ubuntu, Gentoo and FreeBSD
|
| |
MODIFYRESOLVCONF=modify_resolvconf_manager
|
| |
RESTORERESOLVCONF=restore_resolvconf_manager
|
| |
elif [ -x /sbin/netconfig ]; then # tool on Suse after 11.1
|
| |
On Fedora 29 systems, resolvconf is a symbolic link to resolvectl, but
using resolvectl won't work unless "resolve" appears on the "hosts" line
of /etc/nsswitch. If we reach the point of considering resolvconf, then
"resolve" is not enabled and resolvectl should be avoided.
This pull request is to address bug report https://bugzilla.redhat.com/show_bug.cgi?id=1648108