Bug 188436

Summary: rmmod is used in /etc/pm/hooks/50modules (and not modprobe -r)
Product: [Fedora] Fedora Reporter: Paul Bolle <pebolle>
Component: pm-utilsAssignee: Phil Knirsch <pknirsch>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-28 20:54:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paul Bolle 2006-04-09 22:52:06 UTC
Description of problem:
rmmod is used in /etc/pm/hooks/50modules for removing moudles at suspend (and
not modprobe -r). As far as I know this has as a side-effect that you have to
specify modules to be removed at suspend (and to be loaded at resume) as they
appear in /proc/modules (their "real" name). If 'modprobe -r' would be used one
could also use aliases for those modules (in /etc/sysconfig/pm).

Version-Release number of selected component (if applicable):
pm-utils-0.15-1

How reproducible:
always

Steps to Reproduce:
1. add a module by it's alias to /etc/sysconfig/pm
2. suspend or hibernate
3.
  
Actual results:
module is not removed (at suspend) and not loaded (at resume)

Expected results:
module is removed (at suspend) and loaded (at resume)

Additional info:
I do hope that my analysis (that rmmod doesn't use /etc/modprobe.conf) is
correct. Assuming that's the case: there could be valid (but unkown to me)
reasons to use rmmod and not 'modprobe -r' but then I'd say it should be noted
in /etc/sysconfig/pm that one must add modules not by their aliases.

On a side note: I'd guess rmmod also bypasses the "remove" / "--ignore-remove"
trick that /etc/modprobe.conf allows, but I haven't yet ran into that.

Comment 1 Peter Jones 2006-09-28 20:54:00 UTC
Should be fixed in 0.19-1