Bug 1810123 - [RFE] Provide ability to add packages to the needs-restarting plugin configuration.
Summary: [RFE] Provide ability to add packages to the needs-restarting plugin configur...
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dnf-plugins-core
Version: 8.1
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: 8.3
Assignee: nsella
QA Contact: Luca Berton
Depends On:
TreeView+ depends on / blocked
Reported: 2020-03-04 15:18 UTC by Kyle Walker
Modified: 2020-06-18 06:54 UTC (History)
6 users (show)

Fixed In Version: dnf-plugins-core-4.0.17-2.el8
Doc Type: Enhancement
Doc Text:
Clone Of:
Last Closed:
Type: Feature Request
Target Upstream Version:

Attachments (Terms of Use)

Description Kyle Walker 2020-03-04 15:18:57 UTC
Description of problem:

    Right now, the list of packages that are checked is a static list.

    # For which package updates we should recommend a reboot
    # Mostly taken from https://access.redhat.com/solutions/27943
    NEED_REBOOT = ['kernel', 'glibc', 'linux-firmware', 'systemd', 'dbus',
                   'dbus-broker', 'dbus-daemon']

    This results in the need to rebuild each time a new package name is added
    to the list. This feature is requesting that the plugin provide the ability
    to add packages to the needs-restarting plugin via a drop-in.

    Similar to the following:
      # echo “kernel-rt” > /etc/dnf/plugins/needs-restarting.d/kernel-rt.conf

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

Steps to Reproduce:
    Add a package to the needs-restarting plugin

Actual results:
    1. Add the package to the static list
    2. Rebuild the package

Expected results:
    1. Add a drop-in to the /etc/dnf/plugins/needs-restarting.d/ directory

Additional info:

    This was discussed in the context of the following bug report.

      1806060 – 'needs-restarting -r' does not show that a reboot is required after updating the RT kernel in RHEL 7.6.

    A related effort to this request would be to also include the 
    "kernel-rt" package as a new drop-in which would ship along with this RFE.

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