X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=autoconfig.functions;h=ec86e84595289cf771e0c4a3d30175c61749c657;hb=acd0ff862ca2b7a3b867305c99409d41e04aa171;hp=4ddf08646671ec5d67e01b97b216f985e10ed15c;hpb=5b6b38a1878586cbd91c514c037f4f84bb60fbfc;p=grml-autoconfig.git diff --git a/autoconfig.functions b/autoconfig.functions index 4ddf086..ec86e84 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -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