]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
wg-quick: linux: deal with resolvconf migration more gracefully
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 23 May 2025 18:59:38 +0000 (20:59 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 23 May 2025 19:01:53 +0000 (21:01 +0200)
commitd3b40aff964789a2a0533cb7a070592a75a996e3
treec0d2fd3f0e383e951f127320b22431841a6f1cd0
parent90deacd33da06534ee98d41c6e76e108b35cf077
wg-quick: linux: deal with resolvconf migration more gracefully

When Ubuntu systems upgrade from Debian's atrocious resolvconf to the
systemd-resolve symlink, they sometimes leave around
/etc/resolvconf/interface-order, which then winds up breaking the
detection and passing the bogus 'tun.' prefix to systemd's resolvconf,
resulting in failure. Work around this by only doing the 'tun.' prefix
hack if resolvconf isn't a symlink. This is ugly but so it goes.

Reported-by: Andrei Borzenkov <arvidjaar@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/wg-quick/linux.bash