Bug 1901921 - no possibility to configure needs-restarting
Summary: no possibility to configure needs-restarting
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: 34
Hardware: Unspecified
OS: Linux
Target Milestone: ---
Assignee: Nicola Sella
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2020-11-26 12:33 UTC by ocs
Modified: 2021-06-15 07:21 UTC (History)
9 users (show)

Fixed In Version: dnf-plugins-core-4.0.22-1.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-06-15 07:21:11 UTC
Type: Bug

Attachments (Terms of Use)

Description ocs 2020-11-26 12:33:47 UTC
Description of problem:

no possibility to configure needs-restarting

I found this problem in CentOS 8

is still an issue

Version-Release number of selected component (if applicable):

How reproducible: and execute:

Steps to Reproduce:
1. install any non baseOS kernel (eg: elrepo kernel-ml)
2. execute needs-restarting

Actual results:
No core libraries or services have been updated since boot-up.
Reboot should not be necessary.

Expected results:
Some message saying that a reboot is necessary

Additional info:

Comment 1 Nicola Sella 2020-12-07 11:30:59 UTC
Hello, I think the issue can be addressed by, this[1] already released.
I added the missing documentation.[2] You can add packages that need to be restarted in configuration

Example: echo "packagename" > /etc/dnf/plugins/needs-restarting.d/packagename.conf

[1] https://github.com/rpm-software-management/dnf-plugins-core/pull/391
[2] https://github.com/rpm-software-management/dnf-plugins-core/pull/417/

Comment 2 Ben Cotton 2021-02-09 16:17:33 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 3 Nicola Sella 2021-06-02 07:47:27 UTC
Hello, is there any update on the solution I proposed from #comment 1? Does it work for you?
Thank you

Comment 4 ocs 2021-06-09 09:56:16 UTC
Yes! Sorry for not providing feedback
This works like charm:
]# cat /etc/dnf/plugins/needs-restarting.d/kernel-ml.conf

thank you very much

This is not related to the bug, but it is to the topic:
I also have modified the following file to prevent default kernel updates to modify grup boot priorities. (so kernel-ml is always the default boot)

]# cat /etc/sysconfig/kernel
# UPDATEDEFAULT specifies if kernel-install should make
# new kernels the default

# DEFAULTKERNEL specifies the default kernel package type

Comment 5 Fedora Update System 2021-06-15 07:21:11 UTC
FEDORA-2021-78c5f8c03d has been pushed to the Fedora 35 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.