Bug 18897 - grep expression backwords in rc.sysinit for raid devices
grep expression backwords in rc.sysinit for raid devices
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
noarch Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2000-10-11 11:20 EDT by Dan Egli
Modified: 2014-03-16 22:16 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-10-11 11:52:44 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dan Egli 2000-10-11 11:20:22 EDT
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 11:52:38 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.