Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
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: nsella
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 nsella 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


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 nsella 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.