Bug 2218006 - systemd units enabled in %post script should use presets
Summary: systemd units enabled in %post script should use presets
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nfs-utils
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2070726 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-27 19:26 UTC by Timothée Ravier
Modified: 2023-11-03 18:22 UTC (History)
4 users (show)

Fixed In Version: nfs-utils-2.6.3-2.rc3.fc39
Clone Of:
Environment:
Last Closed: 2023-11-03 18:22:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources fedora-release pull-request 267 0 None None None 2023-07-19 08:28:26 UTC
Fedora Package Sources nfs-utils pull-request 13 0 None None None 2023-07-20 14:57:52 UTC

Description Timothée Ravier 2023-06-27 19:26:32 UTC
Since https://fedoraproject.org/wiki/Features/PackagePresets, packages enabling systemd units should also enable them via a systemd preset.

https://src.fedoraproject.org/rpms/nfs-utils/blob/rawhide/f/nfs-utils.spec#_252

Found that while working on https://pagure.io/workstation-ostree-config/pull-request/246

Reproducible: Always

Comment 1 Christian Glombek 2023-06-30 16:22:48 UTC
One thing to note here is that the preset files in https://src.fedoraproject.org/rpms/fedora-release/tree/rawhide are currently only being used for .service units.

The culprit in this case however is a .target unit (nfs-client.target).

I've opened https://src.fedoraproject.org/rpms/fedora-release/pull-request/267 to add the preset, the lines in the nfs-utils.spec linked above could be removed when this is merged.

Comment 2 Christian Glombek 2023-07-19 18:19:58 UTC
Moving back to NEW until the spec is changed. I'll open a PR shortly (currently blocked by https://pagure.io/fedora-infrastructure/issue/11419, the commit can be previewed here: https://github.com/LorbusChris/nfs-utils-rpm/commit/a0548f28c9bee49c02c1a8a70c4c524426cfd4e0).

Comment 3 Timothée Ravier 2023-07-25 14:58:57 UTC
So this bug is actually a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2070726, but as it's closed, let's keep this one.

Comment 5 Timothée Ravier 2023-07-25 15:00:52 UTC
*** Bug 2070726 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Release Engineering 2023-08-16 08:11:31 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 7 Christian Glombek 2023-08-31 06:28:08 UTC
Please review https://src.fedoraproject.org/rpms/nfs-utils/pull-request/13

Comment 9 Fedora Update System 2023-09-19 13:43:01 UTC
FEDORA-2023-368a2668f9 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-368a2668f9

Comment 10 Fedora Update System 2023-09-20 02:07:09 UTC
FEDORA-2023-368a2668f9 has been pushed to the Fedora 39 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-368a2668f9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-368a2668f9

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

Comment 11 Fedora Update System 2023-11-03 18:22:52 UTC
FEDORA-2023-368a2668f9 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


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