From 1b30666cac78ff924fa551cdd739974fd58f96f5 Mon Sep 17 00:00:00 2001 From: "dyoung@redhat.com" Date: Tue, 19 Jun 2012 10:52:51 +0800 Subject: [PATCH] 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 Signed-off-by: Cong Wang Acked-by: Vivek Goyal --- kdump.conf | 5 +++++ kdump.conf.5 | 6 ++++++ mkdumprd | 3 +++ 3 files changed, 14 insertions(+) diff --git a/kdump.conf b/kdump.conf index 93de7ce..245a8cb 100644 --- a/kdump.conf +++ b/kdump.conf @@ -20,6 +20,10 @@ # :/var/crash/%HOST-%DATE/, supports DNS # NOTE: make sure user has necessary write # permissions on server +# blacklist - 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 - Will use the sshkey to do ssh dump # Specifies the path of the ssh key you want to use @@ -107,6 +111,7 @@ #net my.server.com:/export/tmp #net user@my.server.com #sshkey /root/.ssh/kdump_id_rsa +#blacklist cfg80211 path /var/crash #core_collector makedumpfile -c --message-level 1 -d 31 #core_collector scp diff --git a/kdump.conf.5 b/kdump.conf.5 index 9715b97..99075a6 100644 --- a/kdump.conf.5 +++ b/kdump.conf.5 @@ -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 .RE +.B blacklist +.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 .RS Specifies the path of the ssh key you want to use when do ssh dump, diff --git a/mkdumprd b/mkdumprd index accae0e..084e1cb 100644 --- a/mkdumprd +++ b/mkdumprd @@ -50,6 +50,9 @@ check_size() { raw) avail=$(get_raw_size "$2") ;; + blacklist) + add_dracut_arg "--omit-drivers" "$config_val" + ;; *) return esac