mkdumprd: support core_collector and extran_bins
This commit is contained in:
parent
c5f74a28e8
commit
1345d1582d
@ -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@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
|
||||
- Bypass '-d' option.
|
||||
|
||||
|
20
mkdumprd
20
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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user