install core_collector in module-setup.sh
file install code should stay in module-setup.sh, move core_collector installation code as well. Note: mkdumpfile is installed twice before, one is dracut cmdline, another is module_setup.sh. This patch removed the duplicate code in dracut cmdline. Signed-off-by: Dave Young <dyoung@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
parent
9f5af7aca8
commit
4d37a55bc1
@ -201,6 +201,9 @@ kdump_install_conf() {
|
||||
kdump_pre|kdump_post|extra_bins)
|
||||
dracut_install $config_val
|
||||
;;
|
||||
core_collector)
|
||||
dracut_install "${config_val%% *}"
|
||||
;;
|
||||
esac
|
||||
done < /etc/kdump.conf
|
||||
|
||||
|
3
mkdumprd
3
mkdumprd
@ -13,7 +13,7 @@ SSH_KEY_LOCATION="/root/.ssh/kdump_id_rsa"
|
||||
SAVE_PATH=$(grep ^path $conf_file| cut -d' ' -f2)
|
||||
[ -z "$SAVE_PATH" ] && SAVE_PATH="/var/crash"
|
||||
extra_modules=""
|
||||
dracut_args=("--hostonly" "--add" "kdumpbase" "--add" "kernel-modules" "-c" "/dev/null" "-I" "/sbin/makedumpfile" "-o" "plymouth dash")
|
||||
dracut_args=("--hostonly" "--add" "kdumpbase" "--add" "kernel-modules" "-c" "/dev/null" "-o" "plymouth dash")
|
||||
|
||||
add_dracut_arg() {
|
||||
while [ $# -gt 0 ];
|
||||
@ -217,7 +217,6 @@ do
|
||||
;;
|
||||
core_collector)
|
||||
verify_core_collector "$config_val"
|
||||
add_dracut_arg "-I" "${config_val%% *}"
|
||||
;;
|
||||
blacklist)
|
||||
add_dracut_arg "--omit-drivers" "$config_val"
|
||||
|
Loading…
Reference in New Issue
Block a user