diff options
| author | Jeremy Bicha <jbicha@ubuntu.com> | 2017-11-12 15:05:40 -0500 |
|---|---|---|
| committer | Jeremy Bicha <jbicha@ubuntu.com> | 2017-11-12 17:33:41 -0500 |
| commit | 4c81b8e520f9349f6e5ef6902786712d07e91122 (patch) | |
| tree | 9767a51c4cc2537c6476479429f0b114c1bbf491 /debian/patches/fix-resolved-detection.patch | |
| parent | 5c866128b172760e407957141e8d15e7f5654eee (diff) | |
Import Ubuntu patches
Diffstat (limited to 'debian/patches/fix-resolved-detection.patch')
| -rw-r--r-- | debian/patches/fix-resolved-detection.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/fix-resolved-detection.patch b/debian/patches/fix-resolved-detection.patch new file mode 100644 index 00000000..81f1101c --- /dev/null +++ b/debian/patches/fix-resolved-detection.patch @@ -0,0 +1,22 @@ +Description: Fix resolved detection, add stub-resolv.conf support + Fix resolved detection, the symlink target is usually relative to the + root, such that in chroots the file points to a file inside the + chroot. But keep absolute targets too, as these may have been in use + with older version of systemd. Add support for stub-resolv.conf + detection. +Author: Dimitri John Ledkov <xnox@ubuntu.com> + +--- network-manager-1.8.2.orig/src/dns/nm-dns-manager.c ++++ network-manager-1.8.2/src/dns/nm-dns-manager.c +@@ -1645,6 +1645,11 @@ static gboolean + _resolvconf_resolved_managed (void) + { + static const char *const RESOLVED_PATHS[] = { ++ "../run/systemd/resolve/stub-resolv.conf", ++ "../run/systemd/resolve/resolv.conf", ++ "../lib/systemd/resolv.conf", ++ "../usr/lib/systemd/resolv.conf", ++ "/run/systemd/resolve/stub-resolv.conf", + "/run/systemd/resolve/resolv.conf", + "/lib/systemd/resolv.conf", + "/usr/lib/systemd/resolv.conf", |