Bug 1719363

Summary: Generated kernel modules packages don't provide modalias() because script is not executable
Product: Red Hat Enterprise Linux 8 Reporter: Tzafrir Cohen <tzafrir>
Component: redhat-rpm-configAssignee: Florian Festi <ffesti>
Status: CLOSED ERRATA QA Contact: Karel Srot <ksrot>
Severity: unspecified Docs Contact:
Priority: high    
Version: ---CC: ffesti, fweimer, qe-baseos-security
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: redhat-rpm-config-120-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 20:58:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tzafrir Cohen 2019-06-11 15:20:03 UTC
Description of problem:

I build an rpm of a kmod package (with kernel modules). Those modules have some aliases for PCI and USB hardware.

The same package when built on RHEL 7.6, provides modalias() Provides for those aliases.

On RHEL 8.0 those aliases are not created. This seems to be because /usr/lib/rpm/redhat/find-provides only calls scripts /usr/lib/rpm/redhat/find-provides.d/*.prov if they are executable, and the two scripts /usr/lib/rpm/redhat/find-provides.d/*.prov (modalias and firmware) are not executable.

Once I run:

  chmod +x /usr/lib/rpm/redhat/find-provides.d/*.prov

and rebuild, the newly-built package provides modalias()-s as in RHEL 7.6 .


Version-Release number of selected component (if applicable):
kernel-rpm-macros-116-1.el8.noarch

Comment 8 errata-xmlrpc 2019-11-05 20:58:43 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, 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-2019:3389