Bug 113278

Summary: Don't load USB modules when string "nomodules" exist in cmdline
Product: [Fedora] Fedora Reporter: Marcus Alves Grando <marcus>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: low Docs Contact:
Priority: medium    
Version: 1CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 7.47-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-03-17 02:22:16 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 Marcus Alves Grando 2004-01-11 23:22:40 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b)
Gecko/20031210

Description of problem:
Patch for don't load USB modules when "nomodules" exist in cmdline

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

How reproducible:
Always

Steps to Reproduce:
1.Append "nomodules" in grub.conf
2.Boot
3.When rc.sysinit start and try load usb modules error occurs.
    

Actual Results:  Error

Expected Results:  Check if exist "nomodules" in cmdline

Additional info:

Patch to correct this:

--
--- rc.sysinit.old      2004-01-11 21:09:37.867432896 -0200
+++ rc.sysinit  2004-01-11 21:09:23.866561352 -0200
@@ -179,7 +179,7 @@
 # Initialize USB controller and HID devices
 update_boot_stage RCusb
 usb=0
-if ! strstr "$cmdline" nousb; then
+if ! strstr "$cmdline" nousb && ! strstr "$cmdline" nomodules; then
   if ! LC_ALL=C fgrep -q "usb" /proc/devices 2>/dev/null ; then
     aliases=`/sbin/modprobe -c | awk '/^alias usb-controller/ { print
$3 }'`
     if [ -n "$aliases" -a "$aliases" != "off" ]; then
--

Comment 1 Bill Nottingham 2004-03-17 02:22:16 UTC
Added in 7.47-1.