Bug 9707

Summary: rc.sysinit reads keyword raiddev though it is just a comment
Product: [Retired] Red Hat Linux Reporter: Karel Zajicek <karel.zajicek>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-23 18:02:01 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 Karel Zajicek 2000-02-23 09:30:34 UTC
The rc.sysinit script extracts the keyword raidev from
/etc/raidtab even if it is commented. This makes futile troubles
when you use the sample file
/usr/doc/raidtools-0.90/raidtab.sample

[~] grep "raiddev" /etc/raidtab | awk '{print $2}'
/dev/md0
right      # BOGUS!


Simple fix:

--- rc.sysinit  Wed Feb 23 10:23:13 2000
+++ /etc/rc.d/rc.sysinit        Mon Feb  7 11:37:20 2000
@@ -310,7 +310,7 @@

        rc=0

-       for i in `grep "raiddev" /etc/raidtab | awk '{print $2}'`
+       for i in `grep "^raiddev" /etc/raidtab | awk '{print
$2}'`
        do
                RAIDDEV=`basename $i`
                RAIDSTAT=`grep "^$RAIDDEV : active" /proc/mdstat`

Comment 1 Bill Nottingham 2000-02-23 18:02:59 UTC
Will be fixed in initscripts-4.97-1.