Bug 9707 - rc.sysinit reads keyword raiddev though it is just a comment
rc.sysinit reads keyword raiddev though it is just a comment
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
6.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-02-23 04:30 EST by Karel Zajicek
Modified: 2014-03-16 22:12 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-02-23 13:02:01 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Karel Zajicek 2000-02-23 04:30:34 EST
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 13:02:59 EST
Will be fixed in initscripts-4.97-1.

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