Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 313385 Details for
Bug 457758
/sbin/mkdumprd parses comment lines of /etc/mdadm.conf
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to correct parsing of mdadm.conf
mkdumprd.patch (text/plain), 1.04 KB, created by
Neil Horman
on 2008-08-04 17:50:26 UTC
(
hide
)
Description:
patch to correct parsing of mdadm.conf
Filename:
MIME Type:
Creator:
Neil Horman
Created:
2008-08-04 17:50:26 UTC
Size:
1.04 KB
patch
obsolete
>Index: mkdumprd >=================================================================== >RCS file: /cvs/dist/rpms/kexec-tools/RHEL-5/mkdumprd,v >retrieving revision 1.80 >diff -u -r1.80 mkdumprd >--- mkdumprd 23 Jul 2008 13:19:07 -0000 1.80 >+++ mkdumprd 4 Aug 2008 17:49:25 -0000 >@@ -1103,7 +1103,7 @@ > then > cp /etc/mdadm.conf $MNTIMAGE/etc > bin="$bin /sbin/mdadm" >- for i in `cat /etc/mdadm.conf | grep ARRAY | sed -e's/\(^.*level=\)\(.*$\)/\2/' | cut -d" " -f1` >+ for i in `cat /etc/mdadm.conf | grep "^[:space:]*[^#]" | grep ARRAY | sed -e's/\(^.*level=\)\(.*$\)/\2/' | cut -d" " -f1` > do > findmodule $i > done >@@ -1621,7 +1621,7 @@ > #now do any software raid devices we might have > emit "if [ -f /etc/mdadm.conf ]" > emit "then" >-emit " for i in \`awk '/.*ARRAY.*/{print \$2}' /etc/mdadm.conf\`" >+emit " for i in \`grep -v \"#\" /etc/mdadm.conf | awk '/.*ARRAY.*/{print \$2}'\`" > emit " do" > emit " MD_MIN=\`echo \$i | sed -e's/\(^[^0-9]*\)\([0-9]\+$\)/\2/'\`" > emit " mknod \$i b 9 \$MD_MIN"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 457758
: 313385