Bug 2042424 - kernel-tools does not perform a daemon reload when installed/upgraded
Summary: kernel-tools does not perform a daemon reload when installed/upgraded
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: kernel
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jarod Wilson
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-19 13:57 UTC by Daniel Juarez
Modified: 2022-11-08 11:39 UTC (History)
6 users (show)

Fixed In Version: kernel-4.18.0-421.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-08 10:18:41 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat/rhel/src/kernel rhel-8 merge_requests 3164 0 None None None 2022-07-27 21:50:10 UTC
Red Hat Bugzilla 2042340 1 unspecified CLOSED kernel-tools does not perform a daemon reload when installed/upgraded 2023-07-19 07:29:29 UTC
Red Hat Issue Tracker RHELPLAN-108713 0 None None None 2022-01-19 14:04:31 UTC
Red Hat Product Errata RHSA-2022:7683 0 None None None 2022-11-08 10:19:24 UTC

Internal Links: 2042340

Description Daniel Juarez 2022-01-19 13:57:28 UTC
With a recent upgrade of the kernel-tools package we see the following.

root@testnode ~]# systemctl status cpupower.service
● cpupower.service - Configure CPU power related settings
Loaded: loaded (/usr/lib/systemd/system/cpupower.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Warning: cpupower.service changed on disk. Run 'systemctl daemon-reload' to reload units.

There seems to be no `systemctl daemon-reload`in the RPM scriptlet of this package.

In the %post part of the corresponding specfile there seems to miss a daemon reload, just where the following is specified:

```
%if %{with_tools}
%post -n %{name}-tools-libs
/sbin/ldconfig
```

For the record this issue is fixed in CentOS Stream 9: https://gitlab.com/redhat/centos-stream/rpms/kernel-tools/-/blob/c9s/kernel-tools.spec#L400

Comment 9 errata-xmlrpc 2022-11-08 10:18:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: kernel security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:7683


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