Red Hat Bugzilla – Bug 18897
grep expression backwords in rc.sysinit for raid devices
Last modified: 2014-03-16 22:16:47 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.
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.