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