Bug 18897

Summary: grep expression backwords in rc.sysinit for raid devices
Product: [Retired] Red Hat Linux Reporter: Dan Egli <cybrgeek>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: noarch   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-10-11 15:52:44 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 Dan Egli 2000-10-11 15:20:22 UTC
In the /etc/rc.d/rc.sysint script, there is a grep line that pulls each
raiddev line from the /etc/raidtab file. However, the grep line used (grep
"^raiddev") will return any lines that do NOT contain raiddev because the
karrat reverses the grep results. This will prevent any raid devices from
starting automatically from rc.sysinit, and thus preventing any  file
systems stored on those raid devices from automounting and forcing the user
to a repair filesystem prompt on EACH boot. 

To fix, simply remove the karrat from the first grep line (grep "raiddev")
and it works as it appears to have been designed to work.

Comment 1 Tim Waugh 2000-10-11 15:52:38 UTC
Outside of a class (like [a-z]), a caret matches the empty string at the
beginning of a line. (Inside a class it negates the sense of the class.)

So the expression should be correct already.