add blacklist option

For the "blacklist" here, it means prevent the kernel modules
from loading into kdump initrd, which is different from RHEL6.

Signed-off-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
dyoung@redhat.com 2012-06-19 10:52:51 +08:00 committed by Dave Young
parent 4e4a173698
commit 1b30666cac
3 changed files with 14 additions and 0 deletions

View File

@ -20,6 +20,10 @@
# <user@server>:/var/crash/%HOST-%DATE/, supports DNS # <user@server>:/var/crash/%HOST-%DATE/, supports DNS
# NOTE: make sure user has necessary write # NOTE: make sure user has necessary write
# permissions on server # permissions on server
# blacklist <list of kernel modules> - Specify a space-separated list of
# kernel modules not to add to the initramfs.
# The kernel modules have to be specified without the
# ".ko" suffix.
# #
# sshkey <path> - Will use the sshkey to do ssh dump # sshkey <path> - Will use the sshkey to do ssh dump
# Specifies the path of the ssh key you want to use # Specifies the path of the ssh key you want to use
@ -107,6 +111,7 @@
#net my.server.com:/export/tmp #net my.server.com:/export/tmp
#net user@my.server.com #net user@my.server.com
#sshkey /root/.ssh/kdump_id_rsa #sshkey /root/.ssh/kdump_id_rsa
#blacklist cfg80211
path /var/crash path /var/crash
#core_collector makedumpfile -c --message-level 1 -d 31 #core_collector makedumpfile -c --message-level 1 -d 31
#core_collector scp #core_collector scp

View File

@ -42,6 +42,12 @@ supports DNS. NOTE: make sure user has necessary write permissions on
server and that a fqdn is used as the server name server and that a fqdn is used as the server name
.RE .RE
.B blacklist <list of kernel modules>
.RS
Specify a space-separated list of kernel modules not to add to the initramfs.
The kernel modules have to be specified without the ".ko" suffix.
.RE
.B sshkey <path> .B sshkey <path>
.RS .RS
Specifies the path of the ssh key you want to use when do ssh dump, Specifies the path of the ssh key you want to use when do ssh dump,

View File

@ -50,6 +50,9 @@ check_size() {
raw) raw)
avail=$(get_raw_size "$2") avail=$(get_raw_size "$2")
;; ;;
blacklist)
add_dracut_arg "--omit-drivers" "$config_val"
;;
*) *)
return return
esac esac