Skip to content

Commit

Permalink
Fix UEFI detection on some distributions like RHEL where efivars
Browse files Browse the repository at this point in the history
kernel module is builtin. The check of
/sys/firmware/efi/{efi,efivars} is enough IMHO.
  • Loading branch information
Florent authored and Florent38 committed Jun 21, 2013
1 parent d229d55 commit c888633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/share/rear/prep/default/31_include_uefi_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# then add all the required executables, kernel modules, etc...
# Most likely, only recent OSes will be UEFI capable, such as SLES11, RHEL6, Ubuntu 12.10, Fedora 18

# To verify if this kernel has UEFI Runtime Services enabled we check for efivars module
# Some distributions don't have a builtin efivars kernel module, so we need to load it.
# Be aware, efivars is not listed with 'lsmod'
modprobe -q efivars || return # if the module is not present no UEFI booting is possible
modprobe -q efivars

# next step, is checking the presence of UEFI variables directory
# However, we should first check kernel command line to see whether we hide on purpose the UEFI vars with 'noefi'
Expand Down

0 comments on commit c888633

Please sign in to comment.