[kexec-tools] mkdumprd: support core_collector and extran_bins

Cong Wang wangcong at fedoraproject.org
Mon Jul 25 10:03:06 UTC 2011


commit 1345d1582deb27f562fa55d106a77b191d2398b5
Author: Amerigo Wang <amwang at redhat.com>
Date:   Mon Jul 25 18:02:37 2011 +0800

    mkdumprd: support core_collector and extran_bins

 kexec-tools.spec |    5 ++++-
 mkdumprd         |   20 ++++++--------------
 2 files changed, 10 insertions(+), 15 deletions(-)
---
diff --git a/kexec-tools.spec b/kexec-tools.spec
index 137a7ab..238497b 100644
--- a/kexec-tools.spec
+++ b/kexec-tools.spec
@@ -1,6 +1,6 @@
 Name: kexec-tools
 Version: 2.0.2
-Release: 5%{?dist}
+Release: 6%{?dist}
 License: GPLv2
 Group: Applications/System
 Summary: The kexec/kdump userspace component.
@@ -281,6 +281,9 @@ done
 
 
 %changelog
+* Mon Jul 25 2011 Cong Wang <xiyou.wangcong at gmail.com> - 2.0.2-6
+- Support core_collector and extran_bins.
+
 * Thu Jul 21 2011 Cong Wang <xiyou.wangcong at gmail.com> - 2.0.2-5
 - Bypass '-d' option.
 
diff --git a/mkdumprd b/mkdumprd
index e8aefb6..8c736f4 100644
--- a/mkdumprd
+++ b/mkdumprd
@@ -47,11 +47,6 @@ dump_remote() {
     return
 }
 
-# $1 action
-set_default() {
-    return
-}
-
 if [ -n "$conf_file" ]; then
     while read config_opt config_val;
     do
@@ -69,6 +64,12 @@ if [ -n "$conf_file" ]; then
             add_dracut_arg "--add network"
             dump_remote "$config_val"
             ;;
+        core_collector)
+            add_dracut_arg "-I ${config_val% *}"
+            ;;
+        extra_bins)
+            add_dracut_arg "-I $config_val"
+            ;;
         *)
             if [ -n $(echo $config_opt | grep "^#.*$") ]
             then
@@ -78,15 +79,6 @@ if [ -n "$conf_file" ]; then
             ;;
         esac
     done < $conf_file
-    #Now parse the default actions
-    while read config_opt config_val;
-    do
-        case "$config_opt" in
-        default)
-            set_default "$config_val"
-            ;;
-        esac
-    done < $conf_file
 fi
 
 if [ -n "$extra_modules" ]


More information about the scm-commits mailing list