• Bug#1104806: systemd-resolved: Consider using an absolute symbolic link

    From Stefano Rivera@21:1/5 to All on Tue May 6 21:00:02 2025
    Package: systemd-resolved
    Version: 251.4-2
    Severity: normal
    X-Debbugs-Cc: helmutg@debian.org

    Since systemd 251.4-2, the /etc/resolv.conf link has been a relative
    symlink to /run.

    https://salsa.debian.org/systemd-team/systemd/-/commit/5d8a69933df0e9ce9e02ff07baed916ddc5af35e

    Debian policy recommends absolute symbolic links when traversing between top-level directories: https://www.debian.org/doc/debian-policy/ch-files.html#symbolic-links

    I see the maintainer script accepts both possibilities, was there a
    reason for not going with the recommendation?

    Stefano

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From cacin@allfreemail.net@21:1/5 to All on Fri May 9 10:20:01 2025
    Package: systemd-resolved
    Followup-For: Bug #1104806

    Please don't.

    Debian policy is in the wrong here, is out of date for a long time and
    does not reflect best modern practices regarding symlink use.

    Relative symlinks, including in top-level root directories, are
    preferable to absolute symlinks, because they make it safer to work with chroots and containers from outside of them.

    Good luck trying to change the policy, open bugs exist for years [1]

    [1] https://bugs.debian.org/922674

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)