RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1985100 - /etc/depmod.d/dist.conf not included in kmod-28-3
Summary: /etc/depmod.d/dist.conf not included in kmod-28-3
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: kmod
Version: 9.0
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Yauheni Kaliuta
QA Contact: Ziqian SUN (Zamir)
Jana Heves
URL:
Whiteboard:
: 2034093 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-22 20:49 UTC by ricky.armas
Modified: 2022-08-22 10:45 UTC (History)
7 users (show)

Fixed In Version: kmod-28-7.el9
Doc Type: Bug Fix
Doc Text:
.`modprobe` loads out-of-tree kernel modules as expected The `/etc/depmod.d/dist.conf` configuration file provides a search order for the `depmod` utility. Based on the search order, `depmod` creates the `modules.dep.bin` file. This file lists module dependencies, which the `modprobe` utility uses for loading and unloading kernel modules and resolving module dependencies at the same time. Previously, `/etc/depmod.d/dist.conf` was missing. As a result, `modprobe` could not load some out-of-tree kernel modules. This update includes the `/etc/depmod.d/dist.conf` configuration file, which fixes the search order. As a result, `modprobe` loads out-of-tree kernel modules as expected.
Clone Of:
Environment:
Last Closed: 2022-05-17 15:55:34 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2022:3964 0 None None None 2022-05-17 15:55:37 UTC

Description ricky.armas 2021-07-22 20:49:06 UTC
Description of problem:

/etc/depmod.d/dist.conf is used to override the default depmod search order.

cat /etc/depmod.d/dist.conf
#
# depmod.conf
#

# override default search ordering for kmod packaging
search updates extra built-in weak-updates

Our out-of-box driver build installs in the extra directory. Since this conf file is not present depmod will not search the extra directory. I can't load the OOB driver using modprobe. 


# grep lpfc /lib/modules/$(uname -r)/modules.dep
kernel/drivers/scsi/lpfc/lpfc.ko.xz: kernel/drivers/nvme/target/nvmet-fc.ko.xz kernel/drivers/nvme/target/nvmet.ko.xz kernel/drivers/nvme/host/nvme-fc.ko.xz kernel/drivers/nvme/host/nvme-fabrics.ko.xz kernel/drivers/nvme/host/nvme-core.ko.xz kernel/block/t10-pi.ko.xz kernel/drivers/scsi/scsi_transport_fc.ko.xz


I can workaround this by installing under "updates" instead of "extra".

# cd /lib/modules/$(uname -r)
# mv extra updates
# depmod -a
# grep lpfc /lib/modules/$(uname -r)/modules.dep
updates/elx-lpfc/lpfc.ko: kernel/drivers/nvme/target/nvmet-fc.ko.xz kernel/drivers/nvme/target/nvmet.ko.xz kernel/drivers/nvme/host/nvme-fc.ko.xz kernel/drivers/nvme/host/nvme-fabrics.ko.xz kernel/drivers/nvme/host/nvme-core.ko.xz kernel/block/t10-pi.ko.xz kernel/drivers/scsi/scsi_transport_fc.ko.xz




Version-Release number of selected component (if applicable):
RHEL 9 Beta (5.13.0-0.rc3.25.el9.x86_64)


How reproducible:


Steps to Reproduce:
1. Build lpfc kernel module.
2. Copy to /lib/modules/$(uname -r)/extra/elx-lpfc/lpfc.ko
3. Run `depmod -a`.
4. rmmod lpfc && modprobe lpfc

Actual results:
depmod will not search the extra directory. /lib/modules/$(uname -r)/modules.dep references the inbox lpfc kernel module. Out-of-box lpfc will not load using modprobe. 


Expected results:
depmod should search the extra directory. The /etc/depmod.d/dist.conf file provides the search order.


Additional info:

Comment 1 ricky.armas 2021-07-22 21:45:45 UTC
Maybe in RHEL9 each OOB module is expected to create its own conf file in /etc/depmod.d.

Instead of relying on /etc/depmod.d/dist.conf, we can create a custom lpfc.conf.
Example:
# cat /etc/depmod.d/lpfc.conf
search updates extra built-in weak-updates

Comment 24 Yauheni Kaliuta 2021-12-20 07:44:06 UTC
*** Bug 2034093 has been marked as a duplicate of this bug. ***

Comment 30 errata-xmlrpc 2022-05-17 15:55:34 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 (new packages: kmod), 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/RHBA-2022:3964


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