Package: netplan.io
Version: 0.99-3
Severity: normal
Tags: patch
User: [email protected]
Usertags: resolvectl
Hi,
systemd-resolve has been replaced by the resolvectl tool in systemd v239
(i.e. is available since buster). This is from the systemd release
notes:
* The systemd-resolve tool has been renamed to resolvectl (it also
remains available under the old name, for compatibility), and its
interface is now verb-based, similar in style to the other <xyz>ctl
tools, such as systemctl or loginctl.
systemd-resolve is nowadays merely a symlink pointing at resolvectl and
we'd like to get rid of this compat symlink at some point.
Your package uses the old name like this:
$ grep -E "systemd-resolve\b" -R
tests/integration/ethernets.py: out =
subprocess.check_output(['systemd-resolve', '--status'],
universal_newlines=True)
Attached is a patch which uses resolvectl instead.
Please review and consider applying it in your next upload.
It would be great if you can make this upload before the bullseye
release, so we can safely drop the symlink in bullseye+1.
Regards,
Michael
diff --git a/tests/integration/ethernets.py b/tests/integration/ethernets.py
index 231d337..e99749f 100644
--- a/tests/integration/ethernets.py
+++ b/tests/integration/ethernets.py
@@ -131,7 +131,7 @@ class _CommonTests():
elif resolved_in_use():
sys.stdout.write('[resolved] ')
sys.stdout.flush()
- out = subprocess.check_output(['systemd-resolve', '--status'],
universal_newlines=True)
+ out = subprocess.check_output(['resolvectl', 'status'],
universal_newlines=True)
self.assertIn('DNS Servers: 172.1.2.3', out)
self.assertIn('fakesuffix', out)
else: