Bug 180765

Summary: /etc/pm/hooks/50modules incorrectly quotes $SUSPEND_MODULES
Product: [Fedora] Fedora Reporter: Bojan Smojver <bojan>
Component: pm-utilsAssignee: Phil Knirsch <pknirsch>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: 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-02-24 09:53:48 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 Bojan Smojver 2006-02-10 04:57:10 UTC
Description of problem:

In the for loops of this script (only the resume loop really matters, as rmmod
appears to be doing the right thing), the $SUSPEND_MODULES variable is in double
quotes, which makes multiple modules specified in /etc/sysconfig/pm file appear
as one word, therefore not modprobing modules properly on resume.


Version-Release number of selected component (if applicable):
0.09-1


How reproducible:
Always.


Steps to Reproduce:
1. Put at least two modules in /etc/sysconfig/pm file (e.g.
SUSPEND_MODULES="button natsemi"
2. Suspend using pm-hibernate.
3. Resume - modules won't be there.

  
Actual results:
Modules don't load, because modprobe thinks everything after the first module
names are parameters used for that module. Each module should be modprobed
separately.


Expected results:
Should load fine, which it does without double quotes.


Additional info:
N/A

Comment 1 Phil Knirsch 2006-02-24 09:53:48 UTC
Just verified this and removed the wrong double quotes from the script for the
resume and the suspend case as the manpage for rmmod doesn't mention that
multiple modules can be removed at once.

Fix should be in next build.

Read ya, Phil

Comment 2 Bojan Smojver 2006-02-27 09:48:43 UTC
Strangely enough, I didn't see that in Rawhide yet...