Bug 5751

Summary: module setup appears broken in rc.sysinit
Product: [Retired] Red Hat Linux Reporter: doug
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: doug, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-10-10 04:32:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description doug 1999-10-09 03:54:20 UTC
There appears to be broken code in "/etc/rc.d/rc.sysinit",
in the section that is setting up the module stuff, just
before depmod runs.

The maintainer of initscripts needs to take a close look at
this. I haven't analyzed the possible effects, but it's
likely that the symlinks
	/boot/System.map
	/boot/module-info
will not be set correctly under some circumstances, causing
failure of depmod, modprobe, and consequently, of modules.

These two lines appear to be missing backticks:
AS DISTRIBUTED IN RH6.0:
  177:       mtag=grep -l "$ktag" /lib/modules/*/.rhkmvtag
2> /dev/null
  179:          mver=echo $mtag | sed -e 's,/lib/modules/,,'
-e 's,/.rhkmvtag,,' -e 's,[       ].*$,,'

Presumably they should read something like:
SUGGESTED FIX:
  177:       mtag=`grep -l "$ktag" /lib/modules/*/.rhkmvtag`
2> /dev/null
  179:          mver=`echo $mtag | sed -e
's,/lib/modules/,,' -e 's,/.rhkmvtag,,' -e 's,[
].*$,,'`

Comment 1 Bill Nottingham 1999-10-10 04:32:59 UTC
This has been fixed in the latest initscripts in Raw Hide, and also
in 6.1...