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 1003267 - cannot install kmod rpm of a kernel package on RHEL7.0 Alpha3
Summary: cannot install kmod rpm of a kernel package on RHEL7.0 Alpha3
Keywords:
Status: CLOSED DUPLICATE of bug 1029867
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: redhat-rpm-config
Version: 7.0
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Weiping Pan
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-01 12:21 UTC by Alaa Hleihel
Modified: 2015-01-04 21:55 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-22 03:19:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Alaa Hleihel 2013-09-01 12:21:07 UTC
Description of problem:
i created a kmod rpm for a kernel package, but the installation of the rpm failed with the following error on RHEL7.0 Alpha3:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Preparing...                          ################################# [100%]
        file /lib/modules/3.7.0-0.36.el7.x86_64/modules.devname from install of kmod-mlnx-ofa_kernel-2.0-OFED.2.0.9.9.9.20130827.0822.g11932fd.rhel7.x86_64 conflicts with file from package kernel-3.7.0-0.36.el7.x86_64
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

(Note: On RHEL6.x the rpm was built and installed successfully).


Only on RHEL 7.0 (Alpha3) the following files were included in the kmod rpm:
/lib/modules/3.7.0-0.36.el7.x86_64/modules.alias
/lib/modules/3.7.0-0.36.el7.x86_64/modules.alias.bin
/lib/modules/3.7.0-0.36.el7.x86_64/modules.builtin.bin
/lib/modules/3.7.0-0.36.el7.x86_64/modules.dep
/lib/modules/3.7.0-0.36.el7.x86_64/modules.dep.bin
/lib/modules/3.7.0-0.36.el7.x86_64/modules.devname
/lib/modules/3.7.0-0.36.el7.x86_64/modules.softdep
/lib/modules/3.7.0-0.36.el7.x86_64/modules.symbols
/lib/modules/3.7.0-0.36.el7.x86_64/modules.symbols.bin


**** On RHEL6.x none of the above files was part of the kmod rpm.

---------------------------------------------------------------------------------------------
How reproducible:
always

Steps to Reproduce:
1. create kmod rpm using kernel_module_package
2. install
3. will fail with the above error.


---------------------------------------------------------------------------------------------
Additional info:
# uname -r
3.7.0-0.36.el7.x86_64
# cat /etc/issue
Red Hat Enterprise Linux Server release 7.0 Alpha3 (Maipo)
Kernel \r on an \m

redhat-rpm-config-9.1.0-49.el7.noarch.rpm

Comment 2 Panu Matilainen 2013-09-02 05:41:44 UTC
It is not a RHEL-6 issue if its occuring on RHEL-7 alpha, adjusting product accordingly and component to redhat-rpm-macros which is where the kmod macros come from.

Comment 4 Weiping Pan 2013-11-22 03:19:29 UTC
Hi, Alaa,

I think this bug is a duplicate of bz1029867,
we can use bz1029867 to track this issue.

thanks
Weiping Pan

*** This bug has been marked as a duplicate of bug 1029867 ***

Comment 5 m 2014-02-22 00:28:07 UTC
I'm having the same problem.
The bugs referenced in Comment4 by Weiping Pan leads me to a page showing in red "You are not authorized to access bug #1029867."

Where/how can I track this issue? Thanks

Comment 6 Jérémie Galarneau 2014-03-07 22:47:22 UTC
(In reply to m from comment #5)
> I'm having the same problem.
> The bugs referenced in Comment4 by Weiping Pan leads me to a page showing in
> red "You are not authorized to access bug #1029867."
> 
> Where/how can I track this issue? Thanks

Got the same issue on my end. Any chance we get an update on this?

Comment 7 Alaa Hleihel 2014-03-08 12:05:06 UTC
(In reply to Jérémie Galarneau from comment #6)
> (In reply to m from comment #5)
> > I'm having the same problem.
> > The bugs referenced in Comment4 by Weiping Pan leads me to a page showing in
> > red "You are not authorized to access bug #1029867."
> > 
> > Where/how can I track this issue? Thanks
> 
> Got the same issue on my end. Any chance we get an update on this?

Hi,

You need to add the following command to the install section in your spec file (after "make -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor"):

# Cleanup unnecessary kernel-generated module dependency files.
find $INSTALL_MOD_PATH/lib/modules -iname 'modules.*' -exec rm {} \;


You can find more details in the DUP book for RHEL7:
http://people.redhat.com/wpan/doc/rhel7/docs/How_to_Create_a_Driver_Update_Package_on_RHEL7_v0.1.pdf

Thanks,
Alaa


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