Re: ssh impacted by systemd.resolved

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Todd Zullinger writes:


The relevant parts of the diff from -1 to -2 are:

     %posttrans resolved
    +[ $1 -eq 1 ] || exit 0
    +# Initial installation
    +

And that's why an update to 11-1.fc35 ran the rest of the script.

    -  if ! test -e /etc/resolv.conf && ! test -L /etc/resolv.conf; then
    -    ln -sv ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf || :
    +  if ! test -e /etc/resolv.conf; then
    +    ln -sv ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
       elif test -d /run/systemd/system/ &&
          ! mountpoint /etc/resolv.conf &>/dev/null; then
- ln -fsv ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf || :
    +    ln -fsv ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
       fi

Note the elif part. If the symlink exists, it's going to get reset if systemd is installed.

So, if you don't have systemd-resolved currently installed, and then install it, the existing symlink is going to get reset, one way or another. Which might be fine, you're taking an explicit, manual action.

It skips the code which touches /etc/resolv.conf except on
initial install of systemd-resolved, at least, which would
have prevented this issue for most folks in this thread, I
believe.

Now it does.

Attachment: pgpzXaaXGje4I.pgp
Description: PGP signature

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux