mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
Keshav: Blacklist efivars and efi_pstore kernel modules
This commit is contained in:
parent
82d364b15a
commit
e10d8f3b90
2 changed files with 20 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue