Bug 2305390 - systemd-resolved installed and activated during upgrade
Summary: systemd-resolved installed and activated during upgrade
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 40
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: anaconda-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-08-16 22:04 UTC by Paul Wouters
Modified: 2025-09-18 04:25 UTC (History)
14 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-05-20 19:27:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Paul Wouters 2024-08-16 22:04:32 UTC
My systems never have systemd-resolved installed. It runs unbound DNS server instead.

After a system upgrade to f40, systemd-resolved was installed, and had mangled /etc/nsswitch.conf and NetworkManager with /etc/resolv.conf

I believe this is partially due to for some reason anaconda getting installed, which pulls it in as dependency.


Reproducible: Always

Steps to Reproduce:
1. install fedora 38 (or 39?)
2. sudo dnf remove systemd-resolved (and cleanup nsswitch.conf and resolve.conf)
3. do a system upgrade to fedora 40
Actual Results:  
systemd-resolved running and having modified system configs

Expected Results:  
On systemd with no systemd-resolved installed, sys upgrade should not install systemd-resolved.

Comment 1 Paul Wouters 2024-08-16 22:07:56 UTC
I should probably mention that since this server is an unbound DNS server for my LAN, this caused my entire LAN DNS to be not working, since systemd-resolved stole port 53 and caused unbound to fail to start

Comment 2 David Tardon 2024-09-13 11:39:35 UTC
And what makes you think this is an issue in systemd? Packages don't decide themselves to be installed. They are pulled in via dependecies from somewhere.

> I believe this is partially due to for some reason anaconda getting
> installed, which pulls it in as dependency.

Okay, so I'll pass this to anaconda. Maybe the dep. isn't necessary or it could be changed to a weak one.

Comment 3 Katerina Koukiou 2024-09-17 14:08:37 UTC
Anaconda has a hard dependency on systemd-resolved to ensure that DNS resolution works consistently and reliably during the installation process, which is crucial for network-based tasks such as downloading packages or updates from remote repositories.

If a user in an existing installed environment removes systemd-resolved as described in step 2 above, anaconda will be also removed because of the dependency. 

With missing anaconda from the system, I dont see how an system upgrade will pull in anaconda again - which would indeed in turn pull in systemd-resolved.

This needs better reproducibility.

Comment 4 David Tardon 2024-09-18 06:53:27 UTC
> With missing anaconda from the system, I dont see how an system upgrade will
> pull in anaconda again - which would indeed in turn pull in systemd-resolved.

Yeah. `dnf repoquery` tells me that anaconda is not required by anything else in the distro, so it's unclear why it would be installed during an upgrade. If you upgraded using dnf, please check /var/log/dnf.log*--it might provide more info.

Comment 5 Aoife Moloney 2025-04-28 13:40:02 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 6 Aoife Moloney 2025-05-20 19:27:33 UTC
Fedora Linux 40 entered end-of-life (EOL) status on 2025-05-13.

Fedora Linux 40 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 7 Red Hat Bugzilla 2025-09-18 04:25:09 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.