Skip to content

Commit

Permalink
Don't output failures when trying to load efivars
Browse files Browse the repository at this point in the history
When running inside a system without efi support we get:

| modprobe: ERROR: could not insert 'efivars': No such device
  • Loading branch information
mika committed Sep 14, 2018
1 parent c56bbc6 commit acd0ff8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autoconfig.functions
Expand Up @@ -525,8 +525,9 @@ config_secureboot(){
# doesn't work as needed as it relies on /sys/firmware/efi/efivars (while
# /sys/firmware/efi/vars would exist)
if ! $SYSTEMD ; then
modprobe efivars
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
if modprobe efivars &>/dev/null ; then
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
fi
fi

if [ -x /usr/bin/mokutil ] ; then
Expand Down

0 comments on commit acd0ff8

Please sign in to comment.