Keshav: Blacklist efivars and efi_pstore kernel modules

This commit is contained in:
Tobias Powalowski 2013-07-04 08:47:42 +02:00
parent 82d364b15a
commit e10d8f3b90
2 changed files with 20 additions and 0 deletions

View file

@ -1,4 +1,10 @@
# #
# /etc/modprobe.d/modprobe.conf # /etc/modprobe.d/modprobe.conf
# #
blacklist floppy blacklist floppy
blacklist efivars
blacklist efi_pstore
options efi_pstore pstore_disable=1

View file

@ -3578,6 +3578,20 @@ detect_uefi_boot() {
detect_uefi_secure_boot detect_uefi_secure_boot
if [[ "${_DETECTED_UEFI_BOOT}" == "1" ]]; then
if [[ ! "$(grep 'blacklist efivars' "${DESTDIR}/etc/modprobe.d/modprobe.conf")" ]]; then
echo 'blacklist efivars' >> "${DESTDIR}/etc/modprobe.d/modprobe.conf"
fi
if [[ ! "$(grep 'blacklist efi_pstore' "${DESTDIR}/etc/modprobe.d/modprobe.conf")" ]]; then
echo 'blacklist efi_pstore' >> "${DESTDIR}/etc/modprobe.d/modprobe.conf"
fi
if [[ ! "$(grep 'options efi_pstore pstore_disable=1' "${DESTDIR}/etc/modprobe.d/modprobe.conf")" ]]; then
echo 'options efi_pstore pstore_disable=1' >> "${DESTDIR}/etc/modprobe.d/modprobe.conf"
fi
fi
} }
do_uefi_setup_env_vars() { do_uefi_setup_env_vars() {