[kexec-tools/f18: 12/12] rhcrashkernel-param: echo crashkernel=auto for rhel7

Dave Young yangrr at fedoraproject.org
Mon Aug 20 07:07:39 UTC 2012


commit 864fb123f84c1971f8f850df584d504b7d882353
Author: Dave Young <dyoung at redhat.com>
Date:   Fri Aug 10 11:02:38 2012 +0800

    rhcrashkernel-param: echo crashkernel=auto for rhel7
    
    Per discussion in kdump meetint, add crashkernel=auto to rhcrashkernel-param
    script for rhel7 for testing. Anaconda will call this script to add the cmdline
    instead of hardcode it.
    
    Signed-off-by: Dave Young <dyoung at redhat.com>

 rhcrashkernel-param |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/rhcrashkernel-param b/rhcrashkernel-param
index 0c16c70..a823e4b 100644
--- a/rhcrashkernel-param
+++ b/rhcrashkernel-param
@@ -1,2 +1,6 @@
 #!/bin/sh
-echo -n
+if grep -q Fedora /etc/redhat-release; then
+    echo -n
+else
+    echo crashkernel=auto
+fi


More information about the scm-commits mailing list