mkdumprd: support core_collector and extran_bins

This commit is contained in:
Amerigo Wang 2011-07-25 18:02:37 +08:00
parent c5f74a28e8
commit 1345d1582d
2 changed files with 10 additions and 15 deletions

View File

@ -1,6 +1,6 @@
Name: kexec-tools Name: kexec-tools
Version: 2.0.2 Version: 2.0.2
Release: 5%{?dist} Release: 6%{?dist}
License: GPLv2 License: GPLv2
Group: Applications/System Group: Applications/System
Summary: The kexec/kdump userspace component. Summary: The kexec/kdump userspace component.
@ -281,6 +281,9 @@ done
%changelog %changelog
* Mon Jul 25 2011 Cong Wang <xiyou.wangcong@gmail.com> - 2.0.2-6
- Support core_collector and extran_bins.
* Thu Jul 21 2011 Cong Wang <xiyou.wangcong@gmail.com> - 2.0.2-5 * Thu Jul 21 2011 Cong Wang <xiyou.wangcong@gmail.com> - 2.0.2-5
- Bypass '-d' option. - Bypass '-d' option.

View File

@ -47,11 +47,6 @@ dump_remote() {
return return
} }
# $1 action
set_default() {
return
}
if [ -n "$conf_file" ]; then if [ -n "$conf_file" ]; then
while read config_opt config_val; while read config_opt config_val;
do do
@ -69,6 +64,12 @@ if [ -n "$conf_file" ]; then
add_dracut_arg "--add network" add_dracut_arg "--add network"
dump_remote "$config_val" 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 "^#.*$") ] if [ -n $(echo $config_opt | grep "^#.*$") ]
then then
@ -78,15 +79,6 @@ if [ -n "$conf_file" ]; then
;; ;;
esac esac
done < $conf_file 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 fi
if [ -n "$extra_modules" ] if [ -n "$extra_modules" ]