Bug 2217997

Summary: systemd-homed.service & systemd-pstore.service not enabled but in presets
Product: [Fedora] Fedora Reporter: Timothée Ravier <travier>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: fedoraproject, filbranden, lnykryn, msekleta, ryncsn, systemd-maint, yuwatana, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-254~rc2-4.fc39 systemd-253.7-1.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-17 16:36:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Timothée Ravier 2023-06-27 18:57:54 UTC
The systemd-homed.service and systemd-pstore.service are included in the preset in /usr/lib/systemd/system-preset/90-systemd.preset but they are not enabled by default on systems, excepted on Fedora CoreOS, which explicitly reset systemd configuration from the presets.

I've not checked on non-rpm-ostree based systems yet.

I suspect that this is because both service units are part of the systemd-udev sub-package that is not installed when the %post scriplet from the main systemd package runs the preset --all: https://src.fedoraproject.org/rpms/systemd/blob/rawhide/f/systemd.spec#_909

I've found this while working on preset-all for Silverblue as part of the unified core change: https://pagure.io/workstation-ostree-config/pull-request/246

Should we have those enabled on systems or do we want to keep them disabled for now?

Reproducible: Always

Comment 1 Timothée Ravier 2023-06-27 19:01:53 UTC
Reproducible on Fedora Cloud images (which are not rpm-ostree based)

Comment 2 Timothée Ravier 2023-06-27 19:15:12 UTC
Same issue for remote-cryptsetup.target

Comment 3 Zbigniew Jędrzejewski-Szmek 2023-07-17 12:48:09 UTC
I moved/added the scriptlets for systemd-portabled, systemd-homed, systemd-pstore, and remote-cryptsetup.target.

Comment 4 Fedora Update System 2023-07-17 15:10:35 UTC
FEDORA-2023-48fcc26e7d has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-48fcc26e7d

Comment 5 Fedora Update System 2023-07-17 16:36:55 UTC
FEDORA-2023-48fcc26e7d has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2023-07-17 16:58:19 UTC
FEDORA-2023-b07a6a9665 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-b07a6a9665

Comment 7 Fedora Update System 2023-07-18 01:26:27 UTC
FEDORA-2023-b07a6a9665 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-b07a6a9665`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-b07a6a9665

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2023-07-19 03:14:26 UTC
FEDORA-2023-b07a6a9665 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Timothée Ravier 2023-07-25 14:08:29 UTC
Thanks!