Bug 9707 - rc.sysinit reads keyword raiddev though it is just a comment
Summary: rc.sysinit reads keyword raiddev though it is just a comment
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-02-23 09:30 UTC by Karel Zajicek
Modified: 2014-03-17 02:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-02-23 18:02:01 UTC
Embargoed:


Attachments (Terms of Use)

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.


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