Bug 1296465

Summary: weak-module, when adding a module, should collect the symbols from external modules of destination kernel
Product: Red Hat Enterprise Linux 7 Reporter: Renaud Marigny <rmarigny>
Component: kmodAssignee: David Shea <dshea>
Status: CLOSED ERRATA QA Contact: Chunyu Hu <chuhu>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: ccui, chuhu, dshea, qe-baseos-daemons, rmarigny, srandhaw, xiaolli
Target Milestone: rcFlags: dshea: needinfo? (xiaolli)
Target Release: 7.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: kmod-20-6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1284935 Environment:
Last Closed: 2016-11-03 23:55:39 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:
Bug Depends On: 1284935    
Bug Blocks: 1364088    

Comment 8 Chunyu Hu 2016-09-02 10:42:09 UTC
Verified on 3.10.0-495.el7 and kmod-20-6.el7

[root@dell-per415-02 kinfo]# uname -r
3.10.0-500.el7.x86_64

[root@dell-per415-02 kinfo]# rpm -q kmod
kmod-20-6.el7.x86_64

[root@dell-per415-02 kinfo]# modinfo /usr/lib/modules/3.10.0-500.el7.x86_64/extra/kinfo.ko 
filename:       /usr/lib/modules/3.10.0-500.el7.x86_64/extra/kinfo.ko
author:         Rayne
license:        GPL
rhelversion:    7.3
srcversion:     478C0390C4307BE7CDD4CDE
depends:        base
vermagic:       3.10.0-500.el7.x86_64 SMP mod_unload modversions
 
[root@dell-per415-02 kinfo]# modinfo  /usr/lib/modules/3.10.0-495.el7.x86_64/extra/base.ko 
filename:       /usr/lib/modules/3.10.0-495.el7.x86_64/extra/base.ko
author:         Chunyu Hu <chuhu>
license:        GPL
rhelversion:    7.3
srcversion:     809CE6EF0F8F463555BA2C6
depends:        
vermagic:       3.10.0-495.el7.x86_64 SMP mod_unload modversions 
parm:           dummy:How long will the hung task block. (int)

[root@dell-per415-02 kinfo]# ls /usr/lib/modules/3.10.0-500.el7.x86_64/weak-updates/
event_mod  oracleasm

[root@dell-per415-02 kinfo]# ls /usr/lib/modules/3.10.0-495.el7.x86_64/weak-updates/
oracleasm

[root@dell-per415-02 kinfo]# echo /usr/lib/modules/3.10.0-500.el7.x86_64/extra/kinfo.ko  | weak-modules --add-modules --no-initramfs
[root@dell-per415-02 kinfo]# ls /usr/lib/modules/3.10.0-495.el7.x86_64/weak-updates/
kinfo.ko  oracleasm

Comment 11 errata-xmlrpc 2016-11-03 23:55:39 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://rhn.redhat.com/errata/RHBA-2016-2171.html

Comment 12 Chris Williams 2016-11-29 20:26:15 UTC
*** Bug 1340054 has been marked as a duplicate of this bug. ***