Package: ltsp
Version: 20.06-1
Severity: normal
Tags: patch
User: pkg-systemd-maintain...@lists.alioth.debian.org
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
ltsp/server/dnsmasq/55-dnsmasq.sh:    # Jessie doesn't have systemd-resolve
ltsp/server/dnsmasq/55-dnsmasq.sh:    if is_command systemd-resolve; then
ltsp/server/dnsmasq/55-dnsmasq.sh:        dns_server=$(LANG=C.UTF-8 rw 
systemd-resolve --status |


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




-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-1-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ltsp depends on:
ii  busybox                      1:1.30.1-6
ii  openssh-client [ssh-client]  1:8.4p1-3
ii  procps                       2:3.3.16-5
ii  python3                      3.9.1-1
ii  systemd                      247.2-4

Versions of packages ltsp recommends:
ii  man-db  2.9.3-2
ii  sshfs   3.7.1+repack-1

Versions of packages ltsp suggests:
pn  dnsmasq               <none>
pn  epoptes               <none>
ii  ethtool               1:5.9-1
pn  ltsp-binaries | ipxe  <none>
ii  net-tools             1.60+git20181103.0eebece-1
pn  nfs-kernel-server     <none>
ii  openssh-server        1:8.4p1-3
ii  squashfs-tools        1:4.4-2
diff --git a/ltsp/server/dnsmasq/55-dnsmasq.sh 
b/ltsp/server/dnsmasq/55-dnsmasq.sh
index 09cc69d..9194262 100644
--- a/ltsp/server/dnsmasq/55-dnsmasq.sh
+++ b/ltsp/server/dnsmasq/55-dnsmasq.sh
@@ -56,9 +56,9 @@ dns_server() {
         return 0
     fi
     dns_server=
-    # Jessie doesn't have systemd-resolve
-    if is_command systemd-resolve; then
-        dns_server=$(LANG=C.UTF-8 rw systemd-resolve --status |
+    # Stretch doesn't have resolvectl
+    if is_command resolvectl; then
+        dns_server=$(LANG=C.UTF-8 rw resolvectl status |
             sed -n '/DNS Servers:/,/:/s/.* \([0-9.]\{7,15\}\).*/\1/p' |
             grep -v '^127.0.' |
             tr '\n' ',')

Reply via email to